From 365e1a1d1b3a5d1732ceb67479ba95f73ed43dd9 Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Sat, 15 Jan 2011 11:09:45 +0000 Subject: [PATCH] added lib32-libgcrypt --- lib32-libgcrypt/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 lib32-libgcrypt/PKGBUILD diff --git a/lib32-libgcrypt/PKGBUILD b/lib32-libgcrypt/PKGBUILD new file mode 100644 index 0000000..36098ed --- /dev/null +++ b/lib32-libgcrypt/PKGBUILD @@ -0,0 +1,42 @@ +# Lib32 Packages for Chakra, part of chakra-project.org +# +# maintainer (x86_64): Giuseppe CalĂ  +# maintainer (x86_64): Anke Boersma + +_pkgbasename=libgcrypt +pkgname=lib32-$_pkgbasename +pkgver=1.4.5 +pkgrel=1 +pkgdesc="a general purpose crypto library based on the code used (32-bit)" +arch=(x86_64) +url="http://www.gnupg.org" +license=('LGPL') +depends=('lib32-libgpg-error>=1.7' $_pkgbasename) +makedepends=(gcc-multilib libtool-multilib) +options=(!libtool) +source=(ftp://ftp.gnupg.org/gcrypt/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2 + #ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/libgcrypt/${_pkgbasename}-${pkgver}.tar.bz2 +) +md5sums=('cc2017ad09b4543f8b3b5e9a53cfd89d') + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd ${srcdir}/${_pkgbasename}-${pkgver} + + # Use 32-bit assembler + sed 's:path="amd64":path="i586 i386":' -i mpi/config.links + + # keep static library for , needed for cryptsetup + ./configure --prefix=/usr --disable-padlock-support --libdir=/usr/lib32 --enable-shared + make +} + +package() { + cd ${srcdir}/${_pkgbasename}-${pkgver} + make DESTDIR=${pkgdir} install + + rm -rf "${pkgdir}"/usr/{include,share,bin,sbin} +}