Skip to content

Commit

Permalink
build: Add a Flatpak manifest
Browse files Browse the repository at this point in the history
This allows building the master branch of Hamster with a simple command:

$ flatpak-builder _build build-aux/flatpak/org.gnome.Hamster.json
  • Loading branch information
bochecha authored and Mathieu Bridon committed Feb 16, 2020
1 parent 95687ac commit c1d8a7f
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ hamster-time-tracker-*.tar.gz
.lock-waf*
build
*.deb
.flatpak-builder
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "build-aux/flatpak/shared-modules"]
path = build-aux/flatpak/shared-modules
url = https://github.com/flathub/shared-modules
64 changes: 64 additions & 0 deletions build-aux/flatpak/org.gnome.Hamster.GUI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"id": "org.gnome.Hamster.GUI",
"runtime": "org.gnome.Platform",
"runtime-version": "3.34",
"sdk": "org.gnome.Sdk",
"command": "hamster",
"finish-args": [
"--socket=x11",
"--socket=wayland",
"--own-name=org.gnome.Hamster"
],
"modules": [
"shared-modules/intltool/intltool-0.51.json",
{
"name": "dbus-python",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-deps --no-use-pep517 --prefix=${FLATPAK_DEST} ."
],
"cleanup": [
"*.la"
],
"sources": [
{
"type": "archive",
"url": "https://files.pythonhosted.org/packages/source/d/dbus-python/dbus-python-1.2.16.tar.gz",
"sha256": "11238f1d86c995d8aed2e22f04a1e3779f0d70e587caffeab4857f3c662ed5a4"
}
]
},
{
"name": "pyxdg",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-deps --no-use-pep517 --prefix=${FLATPAK_DEST} ."
],
"sources": [
{
"type": "archive",
"url": "https://files.pythonhosted.org/packages/source/p/pyxdg/pyxdg-0.26.tar.gz",
"sha256": "fe2928d3f532ed32b39c32a482b54136fe766d19936afc96c8f00645f9da1a06"
}
]
},
{
"name": "hamster",
"buildsystem": "simple",
"build-commands": [
"./waf configure -vv --prefix=${FLATPAK_DEST}",
"./waf build -vv",
"./waf install"
],
"post-install": [
"rm -f ${FLATPAK_DEST}/share/icons/hicolor/icon-theme.cache"
],
"sources": [
{
"type": "dir",
"path": "../.."
}
]
}
]
}
1 change: 1 addition & 0 deletions build-aux/flatpak/shared-modules
Submodule shared-modules added at 8c8539

0 comments on commit c1d8a7f

Please sign in to comment.