summaryrefslogtreecommitdiff
path: root/multilib/lib32-keyutils/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-20 23:03:55 +0000
committerroot <root@rshg047.dnsready.net>2011-06-20 23:03:55 +0000
commitf02c28de0bbcb85e152fc19d0008805021fe1a33 (patch)
tree0cb0a135fbbb06d2e31fe64ff2caad474dcc3813 /multilib/lib32-keyutils/PKGBUILD
parent5457eacc747fc3f91e10a1f452230b1feac39eff (diff)
Mon Jun 20 23:03:54 UTC 2011
Diffstat (limited to 'multilib/lib32-keyutils/PKGBUILD')
-rw-r--r--multilib/lib32-keyutils/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/multilib/lib32-keyutils/PKGBUILD b/multilib/lib32-keyutils/PKGBUILD
new file mode 100644
index 000000000..347bbe56a
--- /dev/null
+++ b/multilib/lib32-keyutils/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 116950 2011-03-26 15:07:29Z tpowa $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+_pkgbasename=keyutils
+pkgname=lib32-$_pkgbasename
+pkgver=1.4
+pkgrel=1
+pkgdesc="Linux Key Management Utilities (32-bit)"
+arch=(x86_64)
+url="http://www.kernel.org"
+license=('GPL2' 'LGPL2.1')
+depends=(lib32-glibc $_pkgbasename)
+makedepends=(gcc-multilib)
+source=(http://people.redhat.com/~dhowells/$_pkgbasename/$_pkgbasename-$pkgver.tar.bz2)
+
+build() {
+ cd "$srcdir/$_pkgbasename-$pkgver"
+
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ sed -i -e '/CFLAGS/s|:= -g -O2|+=|' Makefile
+ sed -i -e 's/^\(USR\)\?LIBDIR\s*:=.*$/\1LIBDIR=\/usr\/lib32/' Makefile
+ make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+package() {
+ cd "$srcdir/$_pkgbasename-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ rm -rf "${pkgdir}"/{usr/{include,share,bin,sbin},etc,{s,}bin}
+}
+md5sums=('e168c1bdaf5aa93c2cbf8a5e7f8ef27b')