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

Allan McRae allan at archlinux.org
Fri Nov 20 02:04:19 EST 2009


    Date: Friday, November 20, 2009 @ 02:04:19
  Author: allan
Revision: 59126

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

Modified:
  xpdf-thai/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-11-20 07:03:03 UTC (rev 59125)
+++ PKGBUILD	2009-11-20 07:04:19 UTC (rev 59126)
@@ -4,9 +4,9 @@
 
 pkgname=xpdf-thai
 pkgver=20020116
-pkgrel=2
+pkgrel=3
 pkgdesc="Adds support for Thai fonts to xpdf"
-arch=('i686' 'x86_64')
+arch=('any')
 url="http://www.foolabs.com/xpdf/"
 license=('GPL2')
 depends=('xpdf')
@@ -15,15 +15,13 @@
 md5sums=('96e058c1b0429ae1ba0b50f1784b0985')
 
 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
+  install -m644 -t $pkgdir/usr/share/xpdf *.unicodeMap Thai.nameToUnicode
+
+  # relocate language specific files
   sed -i 's|/usr/local/share/xpdf/thai|/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
-  install -Dm 644 add-to-xpdfrc $startdir/pkg/etc/xpdf/$pkgname
+  install -Dm644 add-to-xpdfrc $pkgdir/etc/xpdf/$pkgname
 }



More information about the arch-commits mailing list