[arch-commits] Commit in xpdf-chinese-simplified/trunk (PKGBUILD)

Allan McRae allan at archlinux.org
Fri Nov 20 01:47:00 EST 2009


    Date: Friday, November 20, 2009 @ 01:47:00
  Author: allan
Revision: 59092

upgpkg: xpdf-chinese-simplified 20040427-4
    rebuild to get rid of .FILELIST, convert to arch=any

Modified:
  xpdf-chinese-simplified/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-11-20 06:43:19 UTC (rev 59091)
+++ PKGBUILD	2009-11-20 06:47:00 UTC (rev 59092)
@@ -4,7 +4,7 @@
 
 pkgname=xpdf-chinese-simplified
 pkgver=20040427
-pkgrel=3
+pkgrel=4
 pkgdesc="Adds support for simplified Chinese fonts to xpdf"
 arch=('i686' 'x86_64')
 url="http://www.foolabs.com/xpdf/"
@@ -15,12 +15,11 @@
 md5sums=('6c3b04008000948e62530b8582e7f37c' '80107f7a1cb3e6c7f2cbd1875a57b430')
 
 build() {
-  _xpdfextdir=$startdir/pkg/usr/share/xpdf
-  cd $startdir/src/$pkgname
- # copy files to the desired dir, we set /usr/share/xpdf
-  mkdir -p $_xpdfextdir
-  cp -R * $_xpdfextdir
-  rm -f $_xpdfextdir/README $_xpdfextdir/add-to-xpdfrc
+  cd $srcdir/$pkgname
+  install -dm755 $pkgdir/usr/share/xpdf/CMap
+  install -m644 -t $pkgdir/usr/share/xpdf *.unicodeMap
+  install -m644 -t $pkgdir/usr/share/xpdf/CMap CMap/*
+
  # relocate language specific files
   sed -i 's|/usr/local/share/xpdf/chinese-simplified|/usr/share/xpdf|' add-to-xpdfrc
  # X-Fonts are no longer supported by xpdf
@@ -30,6 +29,7 @@
 
 END_OF_RC_TWEAK
 
-  install -Dm 644 add-to-xpdfrc $startdir/pkg/etc/xpdf/$pkgname
-  install -D -m644 ../LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 add-to-xpdfrc $pkgdir/etc/xpdf/$pkgname
+
+  install -Dm644 ${srcdir}/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list