wok-current view db/receipt @ rev 3437
mc: dont use cvs version (dont build)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jun 13 17:08:02 2009 +0200 (2009-06-13) |
parents | 26b57ae6bfb0 |
children | 055b57b92161 |
line source
1 # SliTaz package receipt.
3 PACKAGE="db"
4 VERSION="4.5.20"
5 CATEGORY="misc"
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 {
17 if [ -L $(which patch) ]; then
18 echo "Please reinstall patch !"
19 return 1
20 fi
21 ln -s $PACKAGE-$VERSION.NC $src
22 cd $src
23 wget http://www.oracle.com/technology/products/berkeley-db/db/update/4.5.20/patch.4.5.20.1 || return 1
24 [ -f done.patch.4.5.20.1 ] || patch -p0 < patch.4.5.20.1
25 touch done.patch.4.5.20.1
26 cd build_unix
27 ../dist/configure --prefix=/usr --infodir=/usr/share/info \
28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$PWD/../_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $_pkg/usr/bin $fs/usr
38 # Package all db pkgs
39 for i in $(cd $WOK; ls -d db-* libdb)
40 do
41 tazwok genpkg $i
42 done
43 }
45 clean_wok()
46 {
47 rm -rf PACKAGE-$VERSION.NC
48 }