diff options
Diffstat (limited to 'community/chmsee')
-rw-r--r-- | community/chmsee/PKGBUILD | 52 | ||||
-rw-r--r-- | community/chmsee/chmsee | 2 | ||||
-rw-r--r-- | community/chmsee/chmsee.install | 11 |
3 files changed, 65 insertions, 0 deletions
diff --git a/community/chmsee/PKGBUILD b/community/chmsee/PKGBUILD new file mode 100644 index 000000000..d10d3b141 --- /dev/null +++ b/community/chmsee/PKGBUILD @@ -0,0 +1,52 @@ +# $Id: PKGBUILD 93170 2013-06-27 01:34:18Z foutrelis $ +# Maintainer : Laurent Carlier <lordheavym@gmail.com> +# Contributor: dionydonny <dionydonny@gmail.com> +# Contributor: Ermanno <erm67@yahoo.it> + +pkgname=chmsee +pkgver=2.0.1 +pkgrel=1 +arch=('i686' 'x86_64') +pkgdesc="A chm (MS HTML help file format) viewer based on xulrunner." +url="http://chmsee.googlecode.com/" +license=('GPL') +depends=('xulrunner>18.0' 'xulrunner<23.0' 'chmlib' 'desktop-file-utils') +makedepends=('python2') +#source=(chmsee-$pkgver.tar.gz::https://github.com/jungleji/chmsee/tarball/v$pkgver +#source=(https://github.com/jungleji/chmsee/archive/b2a3c2ad32bfe9db067665ea1928d7e130d1b5e7.zip +source=(https://chmsee.googlecode.com/files/${pkgname}-${pkgver}.tar.gz + chmsee) +install=chmsee.install +md5sums=('08f813d65ed2a9e3af8ff1092650d0a5' + '1787edd1de8aa75bd9fa75a5ab319e85') + +build() { + cd ${srcdir}/chmsee-*/src + + cp Makefile.arch Makefile + sed -i -e 's/17.*/18.0/g' ../application.ini + sed -i -e 's/21.*/22.*/g' ../application.ini + + # xpcom has been merged into xul in xulrunner 22.0 + sed -i -e 's/-lxpcom/-lxul/' common.mk + + make -j1 +} + +package() { + cd ${srcdir}/chmsee-* + + install -d ${pkgdir}/usr/share/chmsee + cp -a * ${pkgdir}/usr/share/chmsee + rm -r ${pkgdir}/usr/share/chmsee/src + install -Dm644 data/chmsee.desktop.in \ + ${pkgdir}/usr/share/applications/chmsee.desktop + # Fix FS#25152 + sed -i -e 's/_//g' ${pkgdir}/usr/share/applications/chmsee.desktop + # + install -d ${pkgdir}/usr/share/pixmaps + install -Dm644 data/chmsee-icon.png ${pkgdir}/usr/share/pixmaps + install -Dm755 ${srcdir}/chmsee ${pkgdir}/usr/bin/chmsee +# install -d ${pkgdir}/usr/share/icons +# cp -a data/icons/* ${pkgdir}/usr/share/icons/ +} diff --git a/community/chmsee/chmsee b/community/chmsee/chmsee new file mode 100644 index 000000000..cd022f561 --- /dev/null +++ b/community/chmsee/chmsee @@ -0,0 +1,2 @@ +#!/bin/sh +xulrunner /usr/share/chmsee/application.ini "$@" diff --git a/community/chmsee/chmsee.install b/community/chmsee/chmsee.install new file mode 100644 index 000000000..308f27d33 --- /dev/null +++ b/community/chmsee/chmsee.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + update-desktop-database -q +} |