updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / db4.8 / PKGBUILD
blobd6243941f3670c0def46cdd360ae5872683a3ce0
1 # Contributor: Leslie P. Polzer <polzer@gnu.org>
2 pkgname=db4.8
3 pkgver=4.8.30
4 pkgrel=1
5 pkgdesc="The Berkeley DB embedded database system 4.8"
6 arch=('i686' 'x86_64')
7 license=('custom')
8 url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
9 depends=('gcc-libs')
10 options=('!libtool' '!makeflags')
11 source=(http://download-uk.oracle.com/berkeley-db/db-${pkgver}.tar.gz)
13 build() {
14   cd ${startdir}/src/db-${pkgver}/
16   cd build_unix
17   ../dist/configure --prefix=/usr --enable-compat185 \
18     --enable-shared --disable-static --enable-cxx
19   make LIBSO_LIBS=-lpthread || return 1
20   make prefix=${startdir}/pkg/usr \
21        includedir=${startdir}/pkg/usr/include/db4.8 install
23   rm -rf ${startdir}/pkg/usr/docs
24   rm -f ${startdir}/pkg/usr/lib/libdb{,_cxx}.so
25   rm -f ${startdir}/pkg/usr/lib/libdb{,_cxx}-4.so
27   cd ${startdir}/pkg/usr/bin
28   for i in *; do
29     mv $i db4.8_${i/db_/}
30   done
31   mkdir -p ${startdir}/pkg/usr/share/licenses/${pkgname}
32   install -m644 ${startdir}/src/db-${pkgver}/LICENSE ${startdir}/pkg/usr/share/licenses/${pkgname}/LICENSE
35 md5sums=('f80022099c5742cd179343556179aa8c')
36 sha1sums=('ab36c170dda5b2ceaad3915ced96e41c6b7e493c')