core/db/Pkgfile

27 lines
823 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=3
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,4})
build() {
cd $name-$version
cat $SRC/patch.$version.{1,2,3} | patch -p0
cat $SRC/patch.$version.4 | patch -p1
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
}