summaryrefslogtreecommitdiff
path: root/multilib/lib32-tdb/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'multilib/lib32-tdb/PKGBUILD')
-rw-r--r--multilib/lib32-tdb/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/multilib/lib32-tdb/PKGBUILD b/multilib/lib32-tdb/PKGBUILD
new file mode 100644
index 000000000..db639ad6e
--- /dev/null
+++ b/multilib/lib32-tdb/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Florian Pritz <flo@xssn.at>
+
+_pkgbasename=tdb
+pkgname=lib32-$_pkgbasename
+pkgver=1.2.1
+pkgrel=3
+pkgdesc="A Trivia Database similar to GDBM but allows simultaneous commits (32-bit)"
+arch=(x86_64)
+license=('GPL3')
+url="http://tdb.samba.org/"
+depends=(lib32-glibc $_pkgbasename)
+makedepends=(gcc-multilib libxslt)
+options=(force)
+source=(http://samba.org/ftp/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz)
+md5sums=('73ea81282a82e5c959d9c082af2d0215')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ ./configure --prefix=/usr \
+ --localstatedir=/var \
+ --sysconfdir=/etc/samba \
+ --libdir=/usr/lib32 \
+ --disable-python
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ make -j1 DESTDIR="$pkgdir" install
+ rm -rf "${pkgdir}"/usr/{include,share,bin}
+}