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

Allan McRae allan at archlinux.org
Fri Nov 20 07:00:29 UTC 2009


    Date: Friday, November 20, 2009 @ 02:00:29
  Author: allan
Revision: 59118

upgpkg: xpdf-korean 20050707-3
    rebuild to get rid of .FILELIST, convert to arch=any

Modified:
  xpdf-korean/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-11-20 06:59:17 UTC (rev 59117)
+++ PKGBUILD	2009-11-20 07:00:29 UTC (rev 59118)
@@ -4,9 +4,9 @@
 
 pkgname=xpdf-korean
 pkgver=20050707
-pkgrel=2
+pkgrel=3
 pkgdesc="Adds support for Korean fonts to xpdf"
-arch=('i686' 'x86_64')
+arch=('any')
 url="http://www.foolabs.com/xpdf/"
 license=('GPL2' 'custom')
 depends=('xpdf')
@@ -15,15 +15,14 @@
 md5sums=('3c1e00f3b9d5fa713df8a3d763d12f3a' '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
- # 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/korean|/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-Korea1	/usr/share/fonts/TTF/VeraSe.ttf
@@ -31,6 +30,6 @@
 
 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 -Dm 644 add-to-xpdfrc $pkgdir/etc/xpdf/$pkgname
+  install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }




More information about the arch-commits mailing list