# Maintainer: Natanael Copa pkgname=db pkgver=4.8.26 _ver=${pkgver} pkgrel=2 pkgdesc="The Berkeley DB embedded database system 4.8" url="http://www.oracle.com/technology/software/products/berkeley-db/index.html" license="custom" depends= makedepends= subpackages="$pkgname-dev $pkgname-doc" # Patches were found here: # http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch.4.7.25.html source="http://download-uk.oracle.com/berkeley-db/db-$_ver.tar.gz " build () { cd "$srcdir"/db-$_ver for i in ../patch.*; do [ -r "$i" ] || continue msg "Applying $i..." patch -p0 < $i || return 1 done cd build_unix ../dist/configure --prefix=/usr \ --mandir=/usr/share/man \ --enable-compat185 \ --enable-shared \ --disable-static \ --disable-cxx make LIBSO_LIBS=-lpthread || return 1 } package() { cd "$srcdir"/db-$_ver/build_unix make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/usr/share/doc mv "$pkgdir"/usr/docs "$pkgdir"/usr/share/doc/$pkgname install -D -m644 "$srcdir"/db-$_ver/LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } md5sums="3476bac9ec0f3c40729c8a404151d5e3 db-4.8.26.tar.gz"