# Maintainer: Diego Nieto Cid # Contributor: Laurent Carlier # Contributor: dionydonny # Contributor: Ermanno pkgname=chmsee pkgver=2.0.2 pkgrel=14 # Temporarily pin pkgrel used in git tag to 13. Next chmsee update # shall jump stright to 15. Yikes! This is asking for trouble :( _pkgrel=13 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>21.0' 'xulrunner<42.0' 'chmlib' 'desktop-file-utils') makedepends=('python2') source=( "chmsee-git::git+https://github.com/diegonc/chmsee.git#tag=pkg/v$pkgver-$_pkgrel" chmsee) install=chmsee.install md5sums=('SKIP' '1787edd1de8aa75bd9fa75a5ab319e85') build() { cd "$srcdir/$pkgname-git/src" cp Makefile.arch Makefile # Clean target fails when files to be removed do not exist # Unfortunately, this means we can't catch other errors reliably. make clean || true make -j1 } package() { cd "$srcdir/$pkgname-git" 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 }