minitube/appdata.patch

58 lines
2.0 KiB
Diff

From 65acfc49047467609e6551d2cbfc64be522ea09e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= <matthias@mailaender.name>
Date: Sun, 18 Sep 2016 08:08:18 +0200
Subject: [PATCH] Add an appdata.xml file.
---
minitube.appdata.xml | 19 +++++++++++++++++++
minitube.pro | 3 +++
2 files changed, 22 insertions(+)
create mode 100644 minitube.appdata.xml
diff --git a/minitube.appdata.xml b/minitube.appdata.xml
new file mode 100644
index 0000000..c6547b6
--- /dev/null
+++ b/minitube.appdata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+ <id type="desktop">minitube.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <license>GPL-3.0+</license>
+ <summary>YouTube app</summary>
+ <description>
+ <p>
+ Minitube is a YouTube desktop application.
+ </p>
+ </description>
+ <url type="homepage">http://flavio.tordini.org/minitube</url>
+ <screenshots>
+ <screenshot type="default">http://flavio.tordini.org/files/minitube/minitube-04.jpg</screenshot>
+ <screenshot>http://flavio.tordini.org/files/minitube/minitube-03.jpg</screenshot>
+ <screenshot>http://flavio.tordini.org/files/minitube/minitube-02.jpg</screenshot>
+ <screenshot>http://flavio.tordini.org/files/minitube/minitube-01.jpg</screenshot>
+ </screenshots>
+</application>
diff --git a/minitube.pro b/minitube.pro
index 42d8808..1e2b1ae 100644
--- a/minitube.pro
+++ b/minitube.pro
@@ -215,6 +215,7 @@ unix:!mac {
PKGDATADIR=\\\"$$PKGDATADIR\\\"
INSTALLS += translations \
desktop \
+ appdata \
iconsvg \
icon16 \
icon22 \
@@ -228,6 +229,8 @@ unix:!mac {
translations.files += $$DESTDIR/locale
desktop.path = $$DATADIR/applications
desktop.files += minitube.desktop
+ appdata.path = $$DATADIR/appdata
+ appdata.files += minitube.appdata.xml
iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
iconsvg.files += data/minitube.svg
icon16.path = $$DATADIR/icons/hicolor/16x16/apps