Addl Fix #742: Add appdata file
authorColin Clark <cclark@carbon>
Sat, 25 Jan 2020 10:44:57 +0000 (10:44 +0000)
committerColin Clark <cclark@carbon>
Sat, 25 Jan 2020 10:44:57 +0000 (10:44 +0000)
https://github.com/BestImageViewer/geeqie/pull/742

Set installation folder location dependent on $prefix variable.
(Flatpak installation requires to the location to be not where
freedesktop.org defines it)

Makefile.am
configure.ac

index 2736004..ab734b2 100644 (file)
@@ -24,7 +24,11 @@ icondir = $(datadir)/pixmaps
 icon_DATA = geeqie.png
 
 # Location defined by freedesktop.org
+if EXTERNAL_PREFIX
+appdatadir = $(datadir)/metainfo
+else
 appdatadir = /usr/share/metainfo
+endif
 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
 appdata_in_files = org.geeqie.Geeqie.appdata.xml.in
 @INTLTOOL_XML_RULE@
index 2ba122f..07cc566 100644 (file)
@@ -190,6 +190,8 @@ AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
 AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:")
 AC_SUBST(WINDRES)
 
+AM_CONDITIONAL([EXTERNAL_PREFIX], [test "x$prefix" != "xNONE"])
+
 dnl reasonable guesses for where stuff is installed
 if test "x$prefix" = "xNONE"; then
   prefix="/usr/local"