diff options
author | rbuj <[email protected]> | 2021-01-26 09:48:19 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-05 14:03:13 +0100 |
commit | 6b159d0665c67c3c78c2968673e24bf45c2430d2 (patch) | |
tree | 2a1749c69530cf639e47f28f866d9b09204db557 /data | |
parent | fe6a858432d2657a2f004a2e40b1005e2142f7b2 (diff) | |
download | atril-6b159d0665c67c3c78c2968673e24bf45c2430d2.tar.bz2 atril-6b159d0665c67c3c78c2968673e24bf45c2430d2.tar.xz |
build: Use PACKAGE_URL variable
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 36 | ||||
-rw-r--r-- | data/atril.appdata.xml.in.in (renamed from data/atril.appdata.xml.in) | 2 |
2 files changed, 21 insertions, 17 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index d357c793..f6a99571 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -14,24 +14,23 @@ man_MANS=atril.1 # uidir = $(pkgdatadir) -ui_DATA = \ +ui_DATA = \ hand-open.png # # Desktop file # -DESKTOP_IN_FILES = atril.desktop.in -DESKTOP_FILES = $(DESKTOP_IN_FILES:.desktop.in=.desktop) - desktopdir = $(datadir)/applications -desktop_DATA = $(DESKTOP_FILES) -$(desktop_DATA): $(DESKTOP_IN_FILES) +desktop_in_files = atril.desktop.in +desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) +$(desktop_DATA): $(desktop_in_files) $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ # # DBus servide file # + if ENABLE_DBUS servicedir = $(datadir)/dbus-1/services service_in_files = org.mate.atril.Daemon.service.in @@ -44,8 +43,10 @@ endif # # App data file # + appdatadir = $(datadir)/metainfo -appdata_in_files = atril.appdata.xml.in +appdata_in_in_files = atril.appdata.xml.in.in +appdata_in_files = $(appdata_in_in_files:.appdata.xml.in.in=.appdata.xml.in) appdata_DATA = $(appdata_in_files:.xml.in=.xml) $(appdata_DATA): $(appdata_in_files) $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ @@ -53,6 +54,7 @@ $(appdata_DATA): $(appdata_in_files) # # GSettings schema # + gsettings_SCHEMAS = org.mate.Atril.gschema.xml .PRECIOUS: $(gsettings_SCHEMAS) @@ -60,7 +62,6 @@ gsettings_SCHEMAS = org.mate.Atril.gschema.xml # include the appropriate makefile rules for schema handling @GSETTINGS_RULES@ - # # GTK icon cache # @@ -79,18 +80,18 @@ update-icon-cache: echo "*** $(gtk_update_icon_cache)"; \ fi - # # Extra files to be included in the tarball # EXTRA_DIST = \ - $(ui_DATA) \ - $(DESKTOP_IN_FILES) \ - $(appdata_in_files) \ + $(appdata_in_in_files) \ + $(desktop_in_files) \ $(gsettings_SCHEMAS) \ - org.mate.atril.Daemon.service.in \ $(man_MANS) \ + $(service_in_files) \ + $(ui_DATA) \ + org.mate.atril.Daemon.service.in \ $(NULL) # @@ -98,10 +99,13 @@ EXTRA_DIST = \ # CLEANFILES = \ - atril.appdata.xml + $(appdata_DATA) \ + $(desktop_DATA) \ + $(service_DATA) \ + $(NULL) DISTCLEANFILES = \ - $(DESKTOP_FILES) \ - $(service_DATA) + $(appdata_in_files) \ + $(NULL) -include $(top_srcdir)/git.mk diff --git a/data/atril.appdata.xml.in b/data/atril.appdata.xml.in.in index c54aee98..963e6d84 100644 --- a/data/atril.appdata.xml.in +++ b/data/atril.appdata.xml.in.in @@ -38,7 +38,7 @@ </image> </screenshot> </screenshots> - <url type="homepage">https://mate-desktop.org</url> + <url type="homepage">@PACKAGE_URL@</url> <updatecontact>[email protected]</updatecontact> <project_group>MATE</project_group> </component> |