updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lib32-db / PKGBUILD
blobd39aa43e43a8fb99c144f7ebf8ac1749498e33a3
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>
6 _pkgbasename=db
7 pkgname=lib32-$_pkgbasename
8 pkgver=5.3.15
9 pkgrel=1
10 pkgdesc="The Berkeley DB embedded database system (32-bit)"
11 arch=('x86_64')
12 url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
13 license=('custom')
14 depends=('lib32-gcc-libs' $_pkgbasename)
15 makedepends=('gcc-multilib')
16 options=('!libtool')
17 source=(http://download.oracle.com/berkeley-db/db-$pkgver.tar.gz)
18 sha1sums=('7683b632a01ff3543c379a120809a942ec457738')
20 build() {
21   export CC="gcc -m32"
22   export CXX="g++ -m32"
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 \
28     --libdir=/usr/lib32
29   make LIBSO_LIBS=-lpthread
32 package() {
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"