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

Allan McRae allan at archlinux.org
Fri Nov 20 01:51:37 EST 2009


    Date: Friday, November 20, 2009 @ 01:51:36
  Author: allan
Revision: 59100

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

Modified:
  xpdf-chinese-traditional/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-11-20 06:51:18 UTC (rev 59099)
+++ PKGBUILD	2009-11-20 06:51:36 UTC (rev 59100)
@@ -4,9 +4,9 @@
 
 pkgname=xpdf-chinese-traditional
 pkgver=20040727
-pkgrel=3
+pkgrel=4
 pkgdesc="Adds support for traditional Chinese fonts to xpdf"
-arch=('i686' 'x86_64')
+arch=('any')
 url="http://www.foolabs.com/xpdf/"
 license=('GPL2' 'custom')
 depends=('xpdf')
@@ -15,21 +15,20 @@
 md5sums=('b7fa7f1850f7cfa28498701507079abb' 'c712b6980d92a9726e5f6638389189e0')
 
 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
- # relocate language specific files
+  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-traditional|/usr/share/xpdf|' add-to-xpdfrc
- # X-Fonts are no longer supported by xpdf
+  # X-Fonts are no longer supported by xpdf
   sed -i 's|^displayCIDFontX.*$||' add-to-xpdfrc
   cat >> add-to-xpdfrc << END_OF_RC_TWEAK
 displayCIDFontTT	Adobe-CNS1	/usr/share/fonts/TTF/Vera.ttf
 
 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