diff options
Diffstat (limited to 'abs/core/libksba')
-rw-r--r-- | abs/core/libksba/PKGBUILD | 32 | ||||
-rw-r--r-- | abs/core/libksba/libksba.install | 20 |
2 files changed, 52 insertions, 0 deletions
diff --git a/abs/core/libksba/PKGBUILD b/abs/core/libksba/PKGBUILD new file mode 100644 index 0000000..505a606 --- /dev/null +++ b/abs/core/libksba/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 149815 2012-02-11 07:14:25Z tpowa $ +# Maintainer: damir <damir@archlinux.org> +# Contributor: Damir Perisa <damir.perisa@bluewin.ch> + +pkgname=libksba +pkgver=1.2.0 +pkgrel=2 +pkgdesc="A CMS and X.509 access library" +arch=(i686 x86_64) +license=('GPL') +url="ftp://ftp.gnupg.org/gcrypt/alpha/libksba" +depends=('bash' 'libgpg-error' 'glibc') +source=(ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2) +options=(!libtool) +install=libksba.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=('e797f370b69b4dc776499d6a071ae137') diff --git a/abs/core/libksba/libksba.install b/abs/core/libksba/libksba.install new file mode 100644 index 0000000..3715b89 --- /dev/null +++ b/abs/core/libksba/libksba.install @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(ksba.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 +} |