core/db/Pkgfile

26 lines
773 B
Plaintext

# Description: Berkeley DB
# URL: http://www.oracle.com/database/berkeley-db/index.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=db
version=4.7.25
release=2
source=(http://download.oracle.com/berkeley-db/$name-$version.tar.gz \
http://www.oracle.com/technology/products/berkeley-db/db/update/$version/patch.$version.{1,2,3})
build() {
cd $name-$version
cat $SRC/patch.$version.{1,2,3} | patch -p0
cd build_unix
LDFLAGS="-lpthread" \
../dist/configure --prefix=/usr \
--enable-compat185 \
--enable-shared \
--enable-static \
--enable-cxx
make
make DESTDIR=$PKG install
rm -r $PKG/usr/docs
chmod -R +w $PKG
}