updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / lib32-db / PKGBUILD
blob93be51e473d300f23c179dd892046e44ff4183ae
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>
6 _pkgbasename=db
7 pkgname=lib32-$_pkgbasename
8 pkgver=5.1.19
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-uk.oracle.com/berkeley-db/db-${pkgver}.tar.gz)
18 md5sums=('76fcbfeebfcd09ba0b4d96bfdf8d884d')
20 build() {
21   cd ${srcdir}/$_pkgbasename-${pkgver}/build_unix
23   export CC="gcc -m32"
24   export CXX="g++ -m32"
25   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
27   ../dist/configure --prefix=/usr --enable-compat185 \
28     --enable-shared --enable-static --enable-cxx --enable-dbm \
29     --libdir=/usr/lib32  
30   make LIBSO_LIBS=-lpthread
33 package() {
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"