summaryrefslogtreecommitdiffstats
path: root/base/db/Pkgfile
blob: bfe614c7e5b036501a307d30c48cc1f5e40793e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Description: La base de données de Berkeley DB
# URL: http://www.sleepycat.com/products/db.shtml
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:

name=db
version=4.7.25
release=1
source=(http://download.oracle.com/berkeley-db/$name-$version.tar.gz \
	http://www.linuxfromscratch.org/patches/lfs/development/$name-$version-upstream_fixes-1.patch)

build() {
	cd $name-$version
	patch -Np1 -i ../$name-$version-upstream_fixes-1.patch
	cd build_unix
	../dist/configure --prefix=/usr \
		--enable-compat185 \
		--enable-cxx
	make
	make DESTDIR=$PKG install
	rm -rf $PKG/usr/docs
	chmod -R +w $PKG
	if [ -f $PKG/usr/share/info/dir ]; then
		rm $PKG/usr/share/info/dir
	fi
}