1 # Contributor: Leslie P. Polzer <polzer@gnu.org>
5 pkgdesc="The Berkeley DB embedded database system 4.8"
8 url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
10 options=('!libtool' '!makeflags')
11 source=(http://download-uk.oracle.com/berkeley-db/db-${pkgver}.tar.gz)
14 cd ${startdir}/src/db-${pkgver}/
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
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')