-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from Murmele/flatpak
Flatpak package
- Loading branch information
Showing
1 changed file
with
219 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,219 @@ | ||
{ | ||
"app-id": "com.github.chipmuenk.pyFDA", | ||
"runtime": "org.kde.Platform", | ||
"runtime-version": "5.12", | ||
"sdk": "org.kde.Sdk", | ||
"command": "pyfdax", | ||
"finish-args": [ | ||
"--socket=wayland", | ||
"--socket=x11", | ||
"--device=dri", | ||
"--filesystem=xdg-run/dconf", "--filesystem=~/.config/dconf:ro", | ||
"--talk-name=ca.desrt.dconf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf", | ||
"--own-name=com.github.chipmuenk.pyFDA", | ||
"--filesystem=home" | ||
], | ||
"rename-icon":"pyfda_icon", /*Image will renamed to match the app-id konvention*/ | ||
"rename-appdata-file": "pyFDA.appdata.xml", | ||
"rename-desktop-file":"pyFDA.desktop", | ||
"modules": [ | ||
{ | ||
"name": "PyQt5", | ||
"cleanup": ["/bin/sip", "/include", "/lib/python3.7/site-packages/*.pyi"], | ||
"config-opts": ["--disable-static", "--enable-x11"], | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"python3 configure.py --confirm-license --no-docstrings --assume-shared --no-sip-files --no-qml-plugin --no-tools --no-qsci-api -d ${FLATPAK_DEST}/lib/python3.7/site-packages --sip=${FLATPAK_DEST}/bin/sip --sip-incdir=${FLATPAK_DEST}/include --stubsdir=${FLATPAK_DEST}/lib/python3.7/site-packages --disable=QtSensors --disable=QtWebEngine --disable=QtQuick --disable=QtQml --disable=QtWebChannel --disable=QtWebEngineCore --disable=QWebEngineWidgets --disable=QtQuickWidgets --disable=QtSql --disable=QtXmlPatterns --disable=QtMultimedia --disable=QtMultimediaWidgets --disable=QtLocation --disable=QtDesigner --disable=QtBluetooth --disable=QtWebKit --disable=QtWebKitWidgets --disable=QtNfc --disable=QtPositioning", | ||
"make -j $(nproc)", | ||
"make install" | ||
], | ||
"sources": [{ | ||
"type": "archive", | ||
"url": "https://www.riverbankcomputing.com/static/Downloads/PyQt5/5.12.1/PyQt5_gpl-5.12.1.tar.gz", | ||
"sha256": "3718ce847d824090fd5f95ff3f13847ee75c2507368d4cbaeb48338f506e59bf" | ||
}], | ||
"modules": [{ | ||
"name": "sip", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"python3 configure.py -b ${FLATPAK_DEST}/bin -d ${FLATPAK_DEST}/lib/python3.7/site-packages -e ${FLATPAK_DEST}/include -v ${FLATPAK_DEST}/share/sip --stubsdir=${FLATPAK_DEST}/lib/python3.7/site-packages", | ||
"make", | ||
"make install" | ||
], | ||
"sources": [{ | ||
"type": "archive", | ||
"url": "https://www.riverbankcomputing.com/static/Downloads/sip/4.19.16/sip-4.19.16.tar.gz", | ||
"sha256": "184c790d58e9527fc6bdac2bbf8638f3d1b41dea922cad8eb83172b4ba70c620" | ||
}] | ||
}] | ||
}, | ||
{ /* seems to be a bug in PyQt5 that this package will not installed */ | ||
"name": "PyQt5-sip", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --prefix=/app --no-deps PyQt5_sip-4.19.15-cp37-cp37m-manylinux1_x86_64.whl" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/2e/ee/c6efd28dcb65e990411be50a46c9757f12202df94cfee73689223bbc2cf0/PyQt5_sip-4.19.15-cp37-cp37m-manylinux1_x86_64.whl", | ||
"sha256": "31a59f76168df007b480b9382256c20f8898c642e1394df2990559f0f6389f66" | ||
} | ||
|
||
] | ||
}, | ||
{ | ||
"name": "numpy", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --prefix=/app --no-deps numpy-1.16.3-cp37-cp37m-manylinux1_x86_64.whl" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/bb/76/24e9f32c78e6f6fb26cf2596b428f393bf015b63459468119f282f70a7fd/numpy-1.16.3-cp37-cp37m-manylinux1_x86_64.whl", | ||
"sha256": "5a8f021c70e6206c317974c93eaaf9bc2b56295b6b1cacccf88846e44a1f33fc" | ||
} | ||
|
||
] | ||
}, | ||
{ | ||
"name": "cycler", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --prefix=/app --no-deps cycler-0.10.0-py2.py3-none-any.whl" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl", | ||
"sha256": "1d8a5ae1ff6c5cf9b93e8811e581232ad8920aeec647c37316ceac982b08cb2d" | ||
} | ||
|
||
] | ||
}, | ||
{ | ||
"name": "matplotlib", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --prefix=/app --no-deps matplotlib-3.0.3-cp37-cp37m-manylinux1_x86_64.whl" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/83/2a/e47bbd9396af32376863a426baed62d9bf3091f81defd1fe81c5f33b11a3/matplotlib-3.0.3-cp37-cp37m-manylinux1_x86_64.whl", | ||
"sha256": "4d4250bf508dd07cca3b43888097f873cadb66eec6ac63dbbfb798798ec07af2" | ||
} | ||
|
||
] | ||
}, | ||
{ | ||
"name": "docutils", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --prefix=/app --no-deps ." | ||
], | ||
"sources": [ | ||
{ | ||
"type": "archive", | ||
"url": "https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-0.14.tar.gz", | ||
"sha256": "51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274" | ||
} | ||
|
||
] | ||
}, | ||
{ | ||
"name": "xlwt", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --prefix=/app --no-deps xlwt-1.3.0-py2.py3-none-any.whl" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/44/48/def306413b25c3d01753603b1a222a011b8621aed27cd7f89cbc27e6b0f4/xlwt-1.3.0-py2.py3-none-any.whl", | ||
"sha256": "a082260524678ba48a297d922cc385f58278b8aa68741596a87de01a9c628b2e" | ||
} | ||
|
||
] | ||
}, | ||
{ | ||
"name": "scipy", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --prefix=/app --no-deps scipy-1.2.1-cp37-cp37m-manylinux1_x86_64.whl" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/3e/7e/5cee36eee5b3194687232f6150a89a38f784883c612db7f4da2ab190980d/scipy-1.2.1-cp37-cp37m-manylinux1_x86_64.whl", | ||
"sha256": "870fd401ec7b64a895cff8e206ee16569158db00254b2f7157b4c9a5db72c722" | ||
} | ||
|
||
] | ||
}, | ||
{ | ||
"name": "kiwisolver", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --prefix=/app --no-deps kiwisolver-1.1.0-cp37-cp37m-manylinux1_x86_64.whl" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/93/f8/518fb0bb89860eea6ff1b96483fbd9236d5ee991485d0f3eceff1770f654/kiwisolver-1.1.0-cp37-cp37m-manylinux1_x86_64.whl", | ||
"sha256": "a0c0a9f06872330d0dd31b45607197caab3c22777600e88031bfe66799e70bb0" | ||
} | ||
|
||
] | ||
}, | ||
{ | ||
"name": "pyparsing", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --prefix=/app --no-deps pyparsing-2.4.0-py2.py3-none-any.whl" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/dd/d9/3ec19e966301a6e25769976999bd7bbe552016f0d32b577dc9d63d2e0c49/pyparsing-2.4.0-py2.py3-none-any.whl", | ||
"sha256": "9b6323ef4ab914af344ba97510e966d64ba91055d6b9afa6b30799340e89cc03" | ||
} | ||
|
||
] | ||
}, | ||
{ | ||
"name": "python-dateutil", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --prefix=/app --no-deps python_dateutil-2.8.0-py2.py3-none-any.whl" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl", | ||
"sha256": "7e6584c74aeed623791615e26efd690f29817a27c73085b78e4bad02493df2fb" | ||
} | ||
|
||
] | ||
}, | ||
{ | ||
"name": "pyFDA", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"python3 setup.py install --prefix=/app", | ||
"desktop-file-install --dir=/app/share/applications ressource/mime/applications/pyFDA.desktop", | ||
"install -Dm755 ressource/pyFDA.appdata.xml /app/share/appdata/pyFDA.appdata.xml", | ||
"install -Dm755 docs/source/img/pyfda_icon.png /app/share/icons/hicolor/100x100/apps/pyfda_icon.png", | ||
"install -Dm755 docs/source/img/pyfda_icon.svg /app/share/icons/hicolor/scalable/apps/pyfda_icon.svg" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"branch": "develop", | ||
"url": "https://github.com/chipmuenk/pyFDA.git" | ||
} | ||
] | ||
} | ||
] | ||
} |