diff options
author | root <root@rshg047.dnsready.net> | 2011-07-09 23:10:17 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-07-09 23:10:17 +0000 |
commit | d1e588afc2779754c0abd1122ecf4f8e3c863d7a (patch) | |
tree | b9373ca2187d6796b8045bae62418621abf01ff4 /testing/libgcrypt | |
parent | d006db78a1ce530e9df8a65f87bf39e8d6cc88e5 (diff) |
Sat Jul 9 23:10:17 UTC 2011
Diffstat (limited to 'testing/libgcrypt')
-rw-r--r-- | testing/libgcrypt/PKGBUILD | 41 | ||||
-rw-r--r-- | testing/libgcrypt/libgcrypt.install | 20 |
2 files changed, 61 insertions, 0 deletions
diff --git a/testing/libgcrypt/PKGBUILD b/testing/libgcrypt/PKGBUILD new file mode 100644 index 000000000..974f69b8a --- /dev/null +++ b/testing/libgcrypt/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 130865 2011-07-08 14:06:03Z andyrtr $ +# Maintainer: Andreas Radke <andyrtr@archlinux.org> + +pkgname=libgcrypt +pkgver=1.5.0 +pkgrel=1 +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 +) +sha1sums=('3e776d44375dc1a710560b98ae8437d5da6e32cf') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + [ "$CARCH" = "i686" ] && EXTRAFLAGS="--disable-aesni-support" + ./configure --prefix=/usr \ + --disable-static \ + --disable-padlock-support $EXTRAFLAGS + make +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make -k 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..79b878201 --- /dev/null +++ b/testing/libgcrypt/libgcrypt.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(gcrypt.info.gz gcrypt.info-1.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 +} |