diff options
author | root <root@rshg047.dnsready.net> | 2011-04-30 22:33:37 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-04-30 22:33:37 +0000 |
commit | c173ac862828a54925737fc1d90ede1dd09a312c (patch) | |
tree | 63d6b46455a4abdaf96aef59bbaa4406c6fe04f8 /testing/libgcrypt | |
parent | 693b5793b8c615601135bc04216a2ca0966087c5 (diff) |
Sat Apr 30 22:33:37 UTC 2011
Diffstat (limited to 'testing/libgcrypt')
-rw-r--r-- | testing/libgcrypt/PKGBUILD | 40 | ||||
-rw-r--r-- | testing/libgcrypt/libgcrypt.install | 20 |
2 files changed, 60 insertions, 0 deletions
diff --git a/testing/libgcrypt/PKGBUILD b/testing/libgcrypt/PKGBUILD new file mode 100644 index 000000000..2ccdf36fd --- /dev/null +++ b/testing/libgcrypt/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 121250 2011-04-29 21:23:37Z andyrtr $ +# Maintainer: Andreas Radke <andyrtr@archlinux.org> + +pkgname=libgcrypt +pkgver=1.4.6 +pkgrel=3 +pkgdesc="a general purpose crypto library based on the code used" +arch=(i686 x86_64) +url="http://www.gnupg.org" +license=('LGPL') +depends=('libgpg-error>=1.9') +options=('!libtool' '!emptydirs') +install=$pkgname.install +source=(ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2 + #ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/libgcrypt/${pkgname}-${pkgver}.tar.bz2 +) +md5sums=('dbf99425a4fe9217c84ce3a35d938634') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr \ + --disable-static \ + --disable-padlock-support + make +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + # Move dynamic libraries to /lib + install -d -m755 "${pkgdir}"/lib/ + mv "${pkgdir}"/usr/lib/libgcrypt.so* "${pkgdir}"/lib/ + ln -sf /lib/libgcrypt.so "${pkgdir}"/usr/lib/libgcrypt.so +} diff --git a/testing/libgcrypt/libgcrypt.install b/testing/libgcrypt/libgcrypt.install new file mode 100644 index 000000000..83e0dcb27 --- /dev/null +++ b/testing/libgcrypt/libgcrypt.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(gcrypt.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $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 $infodir/dir 2> /dev/null + done +} |