diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-16 01:20:24 +0100 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-16 01:20:24 +0100 |
commit | 3fdffb2ffc62d5266bbf8b24a1fc069a6da0bd6a (patch) | |
tree | bcfdfda597cdca37ac86f0729b4dbf8d507e33ca | |
parent | Merge branch 'geoclue2-provider' (diff) | |
parent | appdata: Add screenshot (diff) | |
download | redshift-ng-3fdffb2ffc62d5266bbf8b24a1fc069a6da0bd6a.tar.gz redshift-ng-3fdffb2ffc62d5266bbf8b24a1fc069a6da0bd6a.tar.bz2 redshift-ng-3fdffb2ffc62d5266bbf8b24a1fc069a6da0bd6a.tar.xz |
Merge pull request #145 from jonls/appdata-xml
Fix #95: Add AppData file for package managers
-rw-r--r-- | Makefile.am | 22 | ||||
-rw-r--r-- | data/appdata/redshift-gtk.appdata.xml.in | 20 | ||||
-rw-r--r-- | data/appdata/screenshot.png | bin | 0 -> 329945 bytes | |||
-rw-r--r-- | po/POTFILES.in | 1 |
4 files changed, 41 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 01a7a29..0137635 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,6 +34,9 @@ SYSTEMD_USER_UNIT_IN_FILES = \ data/systemd/redshift.service.in \ data/systemd/redshift-gtk.service.in +APPDATA_IN_FILES = \ + data/appdata/redshift-gtk.appdata.xml.in + # Icons if ENABLE_GUI @@ -85,6 +88,19 @@ $(systemduserunit_DATA): $(SYSTEMD_USER_UNIT_IN_FILES) Makefile sed -e "s|\@bindir\@|$(bindir)|g" "$(srcdir)/$(@:.service=.service.in)" > $@ +# Appdata file +if ENABLE_GUI +appdatadir = @datadir@/appdata +appdata_DATA = $(APPDATA_IN_FILES:.xml.in=.xml) + +# We would preferable use @INTLTOOL_XML_RULE@ here but +# sadly it is broken for out-of-tree builds. +%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) + $(AM_V_GEN)$(MKDIR_P) $(@D); + $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +endif + + EXTRA_DIST = \ $(EXTRA_ROOTDOC_FILES) \ @@ -92,11 +108,13 @@ EXTRA_DIST = \ $(_UBUNTU_MONO_DARK_FILES) \ $(_UBUNTU_MONO_LIGHT_FILES) \ $(DESKTOP_IN_FILES) \ - $(SYSTEMD_USER_UNIT_IN_FILES) + $(SYSTEMD_USER_UNIT_IN_FILES) \ + $(APPDATA_IN_FILES) CLEANFILES = \ $(desktop_DATA) \ - $(systemduserunit_DATA) + $(systemduserunit_DATA) \ + $(appdata_DATA) # Update PO translations diff --git a/data/appdata/redshift-gtk.appdata.xml.in b/data/appdata/redshift-gtk.appdata.xml.in new file mode 100644 index 0000000..f2f3eae --- /dev/null +++ b/data/appdata/redshift-gtk.appdata.xml.in @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright 2014 Jon Lund Steffensen <jonlst@gmail.com> --> +<application> + <id type="desktop">redshift-gtk.desktop</id> + <metadata_license>CC0</metadata_license> + <project_license>GPL-3.0+</project_license> + <description> + <_p>Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.</_p> + <_p>The color temperature is set according to the position of the sun. A different color temperature is set during night and daytime. During twilight and early morning, the color temperature transitions smoothly from night to daytime temperature to allow your eyes to slowly adapt.</_p> + <_p>This program provides a status icon that allows the user to control Redshift.</_p> + </description> + <screenshots> + <screenshot type="default"> + <image>http://jonls.dk/wp-content/uploads/screenshot1.png</image> + <_caption>The Redshift information window overlaid with an example of the redness effect</_caption> + </screenshot> + </screenshots> + <url type="homepage">http://jonls.dk/redshift/</url> + <updatecontact>jonlst@gmail.com</updatecontact> +</application> diff --git a/data/appdata/screenshot.png b/data/appdata/screenshot.png Binary files differnew file mode 100644 index 0000000..f54a4f5 --- /dev/null +++ b/data/appdata/screenshot.png diff --git a/po/POTFILES.in b/po/POTFILES.in index 1f1a30e..7cdb757 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,5 +1,6 @@ # List of source files containing translatable strings +data/appdata/redshift-gtk.appdata.xml.in data/applications/redshift-gtk.desktop.in src/redshift.c |