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

Gaetan Bisson bisson at archlinux.org
Wed Nov 10 23:41:16 UTC 2010


    Date: Wednesday, November 10, 2010 @ 18:41:16
  Author: bisson
Revision: 98528

- include missing cidToUnicode files
- refresh the install script

Modified:
  xpdf-korean/trunk/PKGBUILD
  xpdf-korean/trunk/xpdf-korean.install

---------------------+
 PKGBUILD            |   26 ++++++++++++++------------
 xpdf-korean.install |   23 ++---------------------
 2 files changed, 16 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-11-10 23:33:25 UTC (rev 98527)
+++ PKGBUILD	2010-11-10 23:41:16 UTC (rev 98528)
@@ -4,22 +4,24 @@
 
 pkgname=xpdf-korean
 pkgver=20050707
-pkgrel=3
-pkgdesc="Adds support for Korean fonts to xpdf"
+pkgrel=4
+pkgdesc='Adds support for Korean fonts to xpdf'
 arch=('any')
-url="http://www.foolabs.com/xpdf/"
+url='http://www.foolabs.com/xpdf/'
 license=('GPL2' 'custom')
 depends=('xpdf')
 install=$pkgname.install
-source=(ftp://ftp.foolabs.com/pub/xpdf/$pkgname.tar.gz LICENSE)
-md5sums=('3c1e00f3b9d5fa713df8a3d763d12f3a' '80107f7a1cb3e6c7f2cbd1875a57b430')
+source=("ftp://ftp.foolabs.com/pub/xpdf/$pkgname.tar.gz"
+        'LICENSE')
+md5sums=('3c1e00f3b9d5fa713df8a3d763d12f3a'
+         '80107f7a1cb3e6c7f2cbd1875a57b430')
 
 build() {
-  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/*
-    
+  cd "$srcdir/$pkgname"
+  install -m755 -d "$pkgdir"/usr/share/xpdf/CMap
+  install -m644 -t "$pkgdir"/usr/share/xpdf *.{cidToUnicode,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
@@ -30,6 +32,6 @@
 
 END_OF_RC_TWEAK
 
-  install -Dm 644 add-to-xpdfrc $pkgdir/etc/xpdf/$pkgname
-  install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 add-to-xpdfrc "$pkgdir/etc/xpdf/$pkgname"
+  install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

Modified: xpdf-korean.install
===================================================================
--- xpdf-korean.install	2010-11-10 23:33:25 UTC (rev 98527)
+++ xpdf-korean.install	2010-11-10 23:41:16 UTC (rev 98528)
@@ -4,10 +4,7 @@
 _pkgname=xpdf-korean
 
 post_install() {
- # we check if rc is already included in /etc/xpdfrc
-  echo "make $_pkgname config file known to global xpdf config ..."
-  cat etc/xpdfrc | grep -v /etc/xpdf/$_pkgname >/tmp/.pacxpdf
-  mv /tmp/.pacxpdf etc/xpdfrc
+  sed -i "/\/etc\/xpdf\/$_pkgname/d" etc/xpdfrc
   echo "include /etc/xpdf/$_pkgname" >> etc/xpdfrc
   cat << EOM
 
@@ -23,22 +20,6 @@
 EOM
 }
 
-post_upgrade() {
-  post_install $1
-}
-
 pre_remove() {
-  cat etc/xpdfrc | grep -v /etc/xpdf/$_pkgname >/tmp/.pacxpdf
-  mv /tmp/.pacxpdf etc/xpdfrc
-  chmod 644 etc/xpdfrc
+  sed -i "/\/etc\/xpdf\/$_pkgname/d" etc/xpdfrc
 }
-
-post_remove() {
-  /bin/true
-}
-
-
-op=$1
-shift
-
-$op $*




More information about the arch-commits mailing list