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

Eric Bélanger eric at archlinux.org
Mon Dec 1 01:55:25 UTC 2008


    Date: Sunday, November 30, 2008 @ 20:55:24
  Author: eric
Revision: 20181

upgpkg: gpgme 1.1.7-2
    added info file support (close FS#12296), added !emptydirs to options

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

---------------+
 PKGBUILD      |    9 ++++++---
 gpgme.install |   18 ++++++++++++++++++
 2 files changed, 24 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-11-30 22:31:18 UTC (rev 20180)
+++ PKGBUILD	2008-12-01 01:55:24 UTC (rev 20181)
@@ -4,19 +4,22 @@
 
 pkgname=gpgme
 pkgver=1.1.7
-pkgrel=1
+pkgrel=2
 pkgdesc="A C wrapper library for GnuPG."
 arch=('i686' 'x86_64')
 url="http://www.gnupg.org/related_software/gpgme/"
 license=('GPL')
 depends=('libgpg-error>=1.5' 'pth' 'gnupg' 'gnupg2')
+install=gpgme.install
+options=('!libtool' '!emptydirs')
 source=(ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.gz)
-options=('!libtool')
+md5sums=('8aecb72c4875540970e76e21a06934be')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
   ./configure --prefix=/usr
   make || return 1
   make DESTDIR=${pkgdir} install
+  rm ${pkgdir}/usr/share/info/dir
+  gzip ${pkgdir}/usr/share/info/*
 }
-md5sums=('8aecb72c4875540970e76e21a06934be')

Added: gpgme.install
===================================================================
--- gpgme.install	                        (rev 0)
+++ gpgme.install	2008-12-01 01:55:24 UTC (rev 20181)
@@ -0,0 +1,18 @@
+infodir=/usr/share/info
+filelist=(gpgme.info gpgme.info-1 gpgme.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
+}




More information about the arch-commits mailing list