diff options
author | John Stebbins <[email protected]> | 2016-08-30 09:51:05 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2016-08-30 09:51:05 -0700 |
commit | a464833a790f44f061f9de42a88f64e49156d422 (patch) | |
tree | 4ae1aeeb0d1e98640efe55c5f9db94a329f0de9f /gtk/src/Makefile.am | |
parent | aed230d055ce0e64dfc0a41e401a7a3e7e7fd7bb (diff) |
LinGui: Add flatpak support (#231)
* LinGui: add --flatpak configure option
For building a linux flatpak bundle
* LinGui: add rules to build flatpak repo and bundles
* LinGui: add flatpak compatible icon
* LinGui: add flatpak compatible desktop file
* LinGui: add flatpak appdata xml
* pkg: disable building LinGui when creating cli flatpak
* pkg: clean flatpak build cache when updating source package
* pkg: fix source package build dependencies
Fixes errors when the git ref being packaged changes and you have not
manually deleted stage and pkg build directories.
Diffstat (limited to 'gtk/src/Makefile.am')
-rw-r--r-- | gtk/src/Makefile.am | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gtk/src/Makefile.am b/gtk/src/Makefile.am index d87fc40e1..cd873b0c7 100644 --- a/gtk/src/Makefile.am +++ b/gtk/src/Makefile.am @@ -3,6 +3,8 @@ icons = \ hb-icon.svg +flatpak_icon = fr.handbrake.ghb.svg + icons_dep = \ hb-icon.svg \ hb-start.svg \ @@ -18,6 +20,9 @@ icons_dep = \ hb-complete.svg hb_menu = ghb.desktop +flatpak_menu = fr.handbrake.ghb.desktop + +flatpak_appdata = fr.handbrake.ghb.appdata.xml AM_CPPFLAGS = \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @@ -156,6 +161,7 @@ uninstall-local: fi; \ rm -f $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \ done + rm -f $(DESTDIR)/$(datadir)/icons/hicolor/scalable/apps/$(flatpak_icon) @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ @@ -163,7 +169,9 @@ uninstall-local: echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi - rm -f $(DESTDIR)/$(datadir)/applications/$(hb_menu) + rm -f $(DESTDIR)/$(datadir)/applications/$(hb_menu); \ + rm -f $(DESTDIR)/$(datadir)/applications/$(flatpak_menu) \ + rm -f $(DESTDIR)/$(datadir)/appdata/$(flatpak_appdata) install-data-local: for icon in $(icons); do \ @@ -178,6 +186,7 @@ install-data-local: mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/; \ $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \ done + $(INSTALL_DATA) $(srcdir)/$(flatpak_icon) $(DESTDIR)/$(datadir)/icons/hicolor/scalable/apps/$(flatpak_icon) @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ @@ -186,4 +195,7 @@ install-data-local: echo "*** $(gtk_update_icon_cache)"; \ fi mkdir -p $(DESTDIR)/$(datadir)/applications/; \ - $(INSTALL_DATA) $(srcdir)/$(hb_menu) $(DESTDIR)/$(datadir)/applications/$(hb_menu) + mkdir -p $(DESTDIR)/$(datadir)/appdata/; \ + $(INSTALL_DATA) $(srcdir)/$(hb_menu) $(DESTDIR)/$(datadir)/applications/$(hb_menu); \ + $(INSTALL_DATA) $(srcdir)/$(flatpak_menu) $(DESTDIR)/$(datadir)/applications/$(flatpak_menu); \ + $(INSTALL_DATA) $(srcdir)/$(flatpak_appdata) $(DESTDIR)/$(datadir)/appdata/$(flatpak_appdata) |