diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/xchm | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/xchm')
-rw-r--r-- | community/xchm/PKGBUILD | 34 | ||||
-rw-r--r-- | community/xchm/xchm.desktop | 10 | ||||
-rw-r--r-- | community/xchm/xchm.install | 15 | ||||
-rw-r--r-- | community/xchm/xchm.xml | 7 |
4 files changed, 66 insertions, 0 deletions
diff --git a/community/xchm/PKGBUILD b/community/xchm/PKGBUILD new file mode 100644 index 000000000..03e29537a --- /dev/null +++ b/community/xchm/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 102193 2013-12-06 12:52:51Z giovanni $ +# Maintainer: Giovanni Scafora <giovanni@archlinux.org> + +pkgname=xchm +pkgver=1.23 +pkgrel=1 +pkgdesc="A cross-platform GUI front-end to chmlib" +arch=('i686' 'x86_64') +url="http://xchm.sourceforge.net/" +license=('GPL') +depends=('chmlib' 'wxgtk' 'desktop-file-utils') +install=xchm.install +source=("http://downloads.sourceforge.net/sourceforge/xchm/${pkgname}-${pkgver}.tar.gz" + 'xchm.desktop' + 'xchm.xml') +md5sums=('486d029bd81071a2d04e7181909b1602' + '31fb9692b9ee9f2a205f58b9ff4bc4fe' + '4102b0a393f5c60236143cc034664dd0') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make DESTDIR=${pkgdir} install + install -D -m644 ${srcdir}/xchm.desktop "${pkgdir}/usr/share/applications/xchm.desktop" + install -D -m644 ${srcdir}/xchm.xml "${pkgdir}/usr/share/mime/packages/xchm.xml" +} diff --git a/community/xchm/xchm.desktop b/community/xchm/xchm.desktop new file mode 100644 index 000000000..ca20876b2 --- /dev/null +++ b/community/xchm/xchm.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Xchm +Comment=Views CHM files +Exec=xchm %f +Terminal=false +Type=Application +Icon=xchm-48 +Categories=Viewer;Utility; +MimeType=application/x-chm; +StartupNotify=true diff --git a/community/xchm/xchm.install b/community/xchm/xchm.install new file mode 100644 index 000000000..df90cb5ac --- /dev/null +++ b/community/xchm/xchm.install @@ -0,0 +1,15 @@ +post_install() { + #gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q + update-mime-database usr/share/mime > /dev/null +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + #gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q + update-mime-database usr/share/mime > /dev/null +} diff --git a/community/xchm/xchm.xml b/community/xchm/xchm.xml new file mode 100644 index 000000000..08cb9ca3f --- /dev/null +++ b/community/xchm/xchm.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> + <mime-type type="application/x-chm"> + <comment>Compiled HTML Help Format</comment> + <glob pattern="*.chm"/> + </mime-type> +</mime-info> |