summaryrefslogtreecommitdiff
path: root/multilib/lib32-libgcrypt
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /multilib/lib32-libgcrypt
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/lib32-libgcrypt')
-rw-r--r--multilib/lib32-libgcrypt/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/multilib/lib32-libgcrypt/PKGBUILD b/multilib/lib32-libgcrypt/PKGBUILD
new file mode 100644
index 000000000..e266ea00c
--- /dev/null
+++ b/multilib/lib32-libgcrypt/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 26587 2010-09-15 22:38:34Z bluewind $
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+
+_pkgbasename=libgcrypt
+pkgname=lib32-$_pkgbasename
+pkgver=1.4.6
+pkgrel=3
+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=('dbf99425a4fe9217c84ce3a35d938634')
+
+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}
+}