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

Tobias Powalowski tpowa at archlinux.org
Wed Jan 14 10:02:22 UTC 2009


    Date: Wednesday, January 14, 2009 @ 05:02:22
  Author: tpowa
Revision: 24160

upgpkg: gnupg2 2.0.10-2

Added:
  gnupg2/trunk/gnupg2.install
Modified:
  gnupg2/trunk/PKGBUILD

----------------+
 PKGBUILD       |    6 ++++--
 gnupg2.install |   20 ++++++++++++++++++++
 2 files changed, 24 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-01-14 09:34:23 UTC (rev 24159)
+++ PKGBUILD	2009-01-14 10:02:22 UTC (rev 24160)
@@ -2,14 +2,15 @@
 # Maintainer: Tobias Powalowski <tpowa at archlinux.org>
 pkgname=gnupg2
 pkgver=2.0.10
-pkgrel=1
+pkgrel=2
 pkgdesc="GNU Privacy Guard 2 - a PGP replacement tool"
 arch=(i686 x86_64)
-depends=('libldap' 'curl>=7.16.2' 'bzip2' 'zlib' 'libksba>=1.0.2' 'libgcrypt' 'pth' 'libusb' 'libassuan>=1.0.4' 'pinentry' 'dirmngr')
+depends=('libldap' 'curl>=7.16.2' 'bzip2' 'zlib' 'libksba>=1.0.2' 'libgcrypt' 'pth' 'libusb' 'libassuan>=1.0.4' 'pinentry' 'dirmngr' 'texinfo')
 license=('GPL')
 options=('!makeflags')
 source=(ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$pkgver.tar.bz2)
 url="http://www.gnupg.org/"
+install=gnupg2.install
 
 build() {
   cd $startdir/src/gnupg-$pkgver
@@ -21,5 +22,6 @@
   make DESTDIR=$startdir/pkg install
   # move conflicting files
   mv $startdir/pkg/usr/share/gnupg{,2}
+  rm -f ${pkgdir}/usr/share/info/dir
 }
 md5sums=('1cb778dd555f87685a8fde2f7113725e')

Added: gnupg2.install
===================================================================
--- gnupg2.install	                        (rev 0)
+++ gnupg2.install	2009-01-14 10:02:22 UTC (rev 24160)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(gnupg.info gnupg.info-1 gnupg.info-2)
+
+post_install() {
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list