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

Andreas Radke andyrtr at archlinux.org
Thu Nov 13 08:32:41 UTC 2014


    Date: Thursday, November 13, 2014 @ 09:32:40
  Author: andyrtr
Revision: 226176

upgpkg: libgpg-error 1.17-1

upstream update 1.17

Added:
  libgpg-error/trunk/libgpg-error.install
Modified:
  libgpg-error/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-11-13 07:12:35 UTC (rev 226175)
+++ PKGBUILD	2014-11-13 08:32:40 UTC (rev 226176)
@@ -3,7 +3,7 @@
 # Contributor: judd <jvinet at zeroflux.org>
 
 pkgname=libgpg-error
-pkgver=1.16
+pkgver=1.17
 pkgrel=1
 pkgdesc="Support library for libgcrypt"
 arch=(i686 x86_64)
@@ -12,7 +12,9 @@
 depends=('glibc' 'sh')
 source=(ftp://ftp.gnupg.org/gcrypt/libgpg-error/${pkgname}-${pkgver}.tar.bz2{,.sig})
 	#ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/libgpg-error/${pkgname}-${pkgver}.tar.bz2)
-sha1sums=('059c40a2b78c3ac2b4cbec0e0481faba5af332fe'
+install=libgpg-error.install
+# https://www.gnupg.org/download/integrity_check.html
+sha1sums=('ba5858b2947e7272dd197c87bac9f32caf29b256'
           'SKIP')
 
 build() {

Added: libgpg-error.install
===================================================================
--- libgpg-error.install	                        (rev 0)
+++ libgpg-error.install	2014-11-13 08:32:40 UTC (rev 226176)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(gpgrt.info)
+
+post_install() {
+  [[ -x usr/bin/install-info ]] || return 0
+  for file in "${filelist[@]}"; do
+    install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install "$1"
+}
+
+pre_remove() {
+  [[ -x usr/bin/install-info ]] || return 0
+  for file in "${filelist[@]}"; do
+    install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+  done
+}


More information about the arch-commits mailing list