[arch-commits] Commit in xchm/trunk (PKGBUILD xchm.appdata.xml xchm.desktop)
Balló György
bgyorgy at archlinux.org
Sat Dec 29 10:38:58 UTC 2018
Date: Saturday, December 29, 2018 @ 10:38:57
Author: bgyorgy
Revision: 418831
upgpkg: xchm 1.23-9
Add AppStream metadata
Added:
xchm/trunk/xchm.appdata.xml
Modified:
xchm/trunk/PKGBUILD
xchm/trunk/xchm.desktop
------------------+
PKGBUILD | 13 +++++++++++--
xchm.appdata.xml | 33 +++++++++++++++++++++++++++++++++
xchm.desktop | 6 +++---
3 files changed, 47 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-12-29 10:05:22 UTC (rev 418830)
+++ PKGBUILD 2018-12-29 10:38:57 UTC (rev 418831)
@@ -3,7 +3,7 @@
pkgname=xchm
pkgver=1.23
-pkgrel=8
+pkgrel=9
pkgdesc="Cross-platform GUI front-end to chmlib"
arch=('x86_64')
url="http://xchm.sourceforge.net/"
@@ -11,9 +11,11 @@
depends=('chmlib' 'wxgtk3')
source=("https://downloads.sourceforge.net/xchm/$pkgname-$pkgver.tar.gz"
xchm.desktop
+ xchm.appdata.xml
xchm-wx3.0-compat.patch)
sha256sums=('8f8f5c60954f340e50f1613913eaca6ff489c10ca36b2570b360d8ccba77c062'
- '5c3a47762361f2088eddff29c89e2217c9d063aee8ef152fe3ec9dd9deb8046f'
+ '3d2eb40ca611bd4b27e20e70a18f506658db83f65d9289333c7af46f53c6bfc4'
+ '5e785053bfa99f3f64efdcbcdebdb3800b61fa0c90eaa7e11b484b710922f91c'
'f98c3fa2a82f66ae627015388a9f0e671e280c2b9a1b6007f78a7b3ce013138f')
prepare() {
@@ -31,5 +33,12 @@
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
+
+ install -Dm644 art/xchm-16.png "$pkgdir/usr/share/icons/hicolor/16x16/apps/xchm.png"
+ install -Dm644 art/xchm-32.png "$pkgdir/usr/share/icons/hicolor/32x32/apps/xchm.png"
+ install -Dm644 art/xchm-48.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/xchm.png"
+ install -Dm644 art/xchm-128.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/xchm.png"
install -Dm644 ../$pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
+ install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
+ rm -r "$pkgdir"/usr/share/pixmaps
}
Added: xchm.appdata.xml
===================================================================
--- xchm.appdata.xml (rev 0)
+++ xchm.appdata.xml 2018-12-29 10:38:57 UTC (rev 418831)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+ <id>net.sourceforge.xchm</id>
+ <launchable type="desktop-id">xchm.desktop</launchable>
+ <name>xCHM</name>
+ <summary>View CHM files</summary>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0</project_license>
+ <description>
+ <p>xCHM is a viewer for Compiled HTML Help (CHM) files. It can show the contents tree if one is available, print the current page and do the usual history stunts. It allows one to change fonts and search for text in all the pages of the file, or in the page's titles.</p>
+ </description>
+ <screenshots>
+ <screenshot type="default">
+ <image>http://xchm.sourceforge.net/pics/1viewing.jpg</image>
+ </screenshot>
+ <screenshot>
+ <image>http://xchm.sourceforge.net/pics/2searching.jpg</image>
+ </screenshot>
+ <screenshot>
+ <image>http://xchm.sourceforge.net/pics/3font.jpg</image>
+ </screenshot>
+ <screenshot>
+ <image>http://xchm.sourceforge.net/pics/4find.jpg</image>
+ </screenshot>
+ <screenshot>
+ <image>http://xchm.sourceforge.net/pics/5printing.jpg</image>
+ </screenshot>
+ <screenshot>
+ <image>http://xchm.sourceforge.net/pics/6russian.jpg</image>
+ </screenshot>
+ </screenshots>
+ <url type="homepage">http://xchm.sourceforge.net/</url>
+</component>
Modified: xchm.desktop
===================================================================
--- xchm.desktop 2018-12-29 10:05:22 UTC (rev 418830)
+++ xchm.desktop 2018-12-29 10:38:57 UTC (rev 418831)
@@ -1,10 +1,10 @@
[Desktop Entry]
-Name=Xchm
-Comment=Views CHM files
+Name=xCHM
+Comment=View CHM files
Exec=xchm %f
Terminal=false
Type=Application
-Icon=xchm-48
+Icon=xchm
Categories=Viewer;Utility;
MimeType=application/x-chm;application/vnd.ms-htmlhelp;
StartupNotify=true
More information about the arch-commits
mailing list