diff options
Diffstat (limited to 'core/libksba')
-rw-r--r-- | core/libksba/PKGBUILD | 23 | ||||
-rw-r--r-- | core/libksba/libksba.install | 20 |
2 files changed, 43 insertions, 0 deletions
diff --git a/core/libksba/PKGBUILD b/core/libksba/PKGBUILD new file mode 100644 index 000000000..ccc897c8b --- /dev/null +++ b/core/libksba/PKGBUILD @@ -0,0 +1,23 @@ +# $Id: PKGBUILD 146743 2012-01-16 22:52:50Z dreisner $ +# Maintainer: damir <damir@archlinux.org> +# Contributor: Damir Perisa <damir.perisa@bluewin.ch> + +pkgname=libksba +pkgver=1.2.0 +pkgrel=1 +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 $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr + make + make DESTDIR=$startdir/pkg install +} +md5sums=('e797f370b69b4dc776499d6a071ae137') diff --git a/core/libksba/libksba.install b/core/libksba/libksba.install new file mode 100644 index 000000000..3715b8960 --- /dev/null +++ b/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 +} |