[arch-commits] Commit in chmsee/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Sat Jan 4 11:26:56 UTC 2014


    Date: Saturday, January 4, 2014 @ 12:26:56
  Author: bpiotrowski
Revision: 103374

upgpkg: chmsee 2.0.2-2

- rebuild against xulrunner 25.0

Modified:
  chmsee/trunk/PKGBUILD

----------+
 PKGBUILD |   45 ++++++++++++++++++++-------------------------
 1 file changed, 20 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-04 10:26:43 UTC (rev 103373)
+++ PKGBUILD	2014-01-04 11:26:56 UTC (rev 103374)
@@ -5,48 +5,43 @@
 
 pkgname=chmsee
 pkgver=2.0.2
-pkgrel=1
+pkgrel=2
 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<24.0' 'chmlib' 'desktop-file-utils')
+depends=('xulrunner>21.0' 'xulrunner<27.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
+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=\).*/\126.*/' application.ini
+}
+
 build() {
-  cd ${srcdir}/chmsee-*/src
-
+  cd $pkgname-$pkgver/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-*
+  cd $pkgname-$pkgver
 
-  install -d ${pkgdir}/usr/share/chmsee
-  cp -a * ${pkgdir}/usr/share/chmsee
-  rm -r ${pkgdir}/usr/share/chmsee/src
+  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
+    "$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/
+  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
 }




More information about the arch-commits mailing list