1 # $Id: PKGBUILD 35318 2010-12-18 21:29:14Z heftig $
2 # Maintainer: 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-uk.oracle.com/berkeley-db/db-${pkgver}.tar.gz)
18 md5sums=('76fcbfeebfcd09ba0b4d96bfdf8d884d')
21 cd ${srcdir}/$_pkgbasename-${pkgver}/build_unix
25 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
27 ../dist/configure --prefix=/usr --enable-compat185 \
28 --enable-shared --enable-static --enable-cxx --enable-dbm \
30 make LIBSO_LIBS=-lpthread
34 cd ${srcdir}/${_pkgbasename}-${pkgver}/build_unix
35 make DESTDIR=${pkgdir} install
37 rm -rf "${pkgdir}"/usr/{docs,include,share,bin}
38 mkdir -p "$pkgdir/usr/share/licenses"
39 ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"