wok view db/receipt @ rev 1191
Add clean_wok rules in db.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Aug 05 00:37:08 2008 +0200 (2008-08-05) |
parents | c13c815a576c |
children | 03a799424aaa |
line source
1 # SliTaz package receipt.
3 PACKAGE="db"
4 VERSION="4.5.20"
5 CATEGORY="system"
6 SHORT_DESC="Berkeley database system."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.NC.tar.gz"
9 WEB_SITE="http://www.oracle.com/technology/software/products/berkeley-db/db/"
10 WGET_URL="http://download.oracle.com/berkeley-db/$TARBALL"
11 BUILD_DEPENDS="patch"
12 DEPENDS="libdb"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
18 ln -s $PACKAGE-$VERSION.NC $src
19 cd $src
20 wget http://www.oracle.com/technology/products/berkeley-db/db/update/4.5.20/patch.4.5.20.1
21 patch -p0 < patch.4.5.20.1
22 cd build_unix
23 ../dist/configure --prefix=/usr --infodir=/usr/share/info \
24 --mandir=/usr/share/man $CONFIGURE_ARGS
25 make
26 make DESTDIR=$PWD/../_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $_pkg/usr/bin $fs/usr
34 # Package all db pkgs
35 for i in $(cd $WOK; ls -d db-* libdb)
36 do
37 tazwok genpkg $i
38 done
39 }
41 clean_wok()
42 {
43 rm -rf PACKAGE-$VERSION.NC
44 }