1 # Maintainer: josephgbr <rafael.f.f1@gmail.com>
2 # Contributor: Biru Ionut <biru.ionut at gmail.com>
3 # Contributor: Allan McRae <allan@archlinux.org>
4 # Contributor: Andreas Radke <andyrtr@archlinux.org>
7 pkgname=lib32-$_pkgbasename
10 pkgdesc="The Berkeley DB embedded database system (32-bit)"
12 url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
14 depends=('lib32-gcc-libs' $_pkgbasename)
15 makedepends=('gcc-multilib')
17 source=(http://download.oracle.com/berkeley-db/db-$pkgver.tar.gz)
18 sha1sums=('7683b632a01ff3543c379a120809a942ec457738')
23 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
25 cd "${srcdir}/${_pkgbasename}-${pkgver}/build_unix"
26 ../dist/configure --prefix=/usr --enable-compat185 \
27 --enable-shared --enable-static --enable-cxx --enable-dbm \
29 make LIBSO_LIBS=-lpthread
33 cd "${srcdir}/${_pkgbasename}-${pkgver}/build_unix"
34 make DESTDIR="${pkgdir}" install
36 rm -r "${pkgdir}"/usr/{docs,include,bin}
37 mkdir -p "$pkgdir/usr/share/licenses"
38 ln -s ${_pkgbasename} "$pkgdir/usr/share/licenses/$pkgname"