From 7de0a9c21ecdb7becae761d7c9f2e723cb9ae0d3 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 17 Jan 2012 23:14:55 +0000 Subject: Tue Jan 17 23:14:54 UTC 2012 --- core/libassuan/PKGBUILD | 31 +++++++++++++++++++++++++++++++ core/libassuan/libassuan.install | 20 ++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 core/libassuan/PKGBUILD create mode 100644 core/libassuan/libassuan.install (limited to 'core/libassuan') diff --git a/core/libassuan/PKGBUILD b/core/libassuan/PKGBUILD new file mode 100644 index 000000000..12e79ce0e --- /dev/null +++ b/core/libassuan/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 146745 2012-01-16 22:52:52Z dreisner $ +# Maintainer: Tobias Powalowski + +pkgname=libassuan +pkgver=2.0.3 +pkgrel=1 +pkgdesc="A IPC library used by some GnuPG related software" +arch=('i686' 'x86_64') +license=('GPL') +url="http://www.gnupg.org/related_software/libassuan" +depends=('libgpg-error') +options=('!libtool') +source=(ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2) +install=libassuan.install + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr + make +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install +} +md5sums=('179d1918325fdb928c7bd90b8a514fc7') diff --git a/core/libassuan/libassuan.install b/core/libassuan/libassuan.install new file mode 100644 index 000000000..07e2672db --- /dev/null +++ b/core/libassuan/libassuan.install @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(assuan.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 +} -- cgit v1.2.3-54-g00ecf