# $Id: PKGBUILD 108848 2014-04-05 05:53:40Z lcarlier $ # Maintainer : Laurent Carlier # Contributor: dionydonny # Contributor: Ermanno pkgname=chmsee pkgver=2.0.2 pkgrel=4 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<29.0' 'chmlib' 'desktop-file-utils') makedepends=('python2') source=(https://chmsee.googlecode.com/files/$pkgname-$pkgver.tar.gz chmsee) install=chmsee.install md5sums=('c6a6ce009395c72ecf0530500ecda37c' '1787edd1de8aa75bd9fa75a5ab319e85') prepare() { cd $pkgname-$pkgver sed -i -e 's/^\(MaxVersion=\).*/\128.*/' application.ini } build() { cd $pkgname-$pkgver/src cp Makefile.arch Makefile make -j1 } package() { cd $pkgname-$pkgver 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 }