summaryrefslogtreecommitdiff
path: root/multilib/lib32-talloc
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-talloc
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/lib32-talloc')
-rw-r--r--multilib/lib32-talloc/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/multilib/lib32-talloc/PKGBUILD b/multilib/lib32-talloc/PKGBUILD
new file mode 100644
index 000000000..f67679998
--- /dev/null
+++ b/multilib/lib32-talloc/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 29311 2010-10-12 21:12:22Z lcarlier $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+
+_pkgbasename=talloc
+pkgname=lib32-$_pkgbasename
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="talloc is a hierarchical pool based memory allocator with destructors (32-bit)"
+arch=(x86_64)
+license=('GPL3')
+url="http://talloc.samba.org/"
+source=(http://samba.org/ftp/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz)
+depends=('lib32-glibc' $_pkgbasename)
+makedepends=(gcc-multilib)
+md5sums=('c6e736540145ca58cb3dcb42f91cf57b')
+
+build() {
+ export CC="gcc -m32"
+
+ cd ${srcdir}/${_pkgbasename}-${pkgver}
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/samba \
+ --localstatedir=/var \
+ --enable-talloc-compat1 \
+ --enable-largefile \
+ --libdir=/usr/lib32
+
+ make
+}
+
+package() {
+ cd ${srcdir}/${_pkgbasename}-${pkgver}
+
+ make DESTDIR=$pkgdir/ install
+
+ # fix permission
+ chmod 644 $pkgdir/usr/lib32/libtalloc.a
+ rm -rf $pkgdir/usr/include
+}
+