wok-next annotate db/receipt @ rev 3330
Up: gpicview (v0.2.0)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Tue Jun 09 19:40:56 2009 +0000 (2009-06-09) |
parents | 26b57ae6bfb0 |
children | 055b57b92161 |
rev | line source |
---|---|
pascal@1155 | 1 # SliTaz package receipt. |
pascal@1155 | 2 |
pascal@1155 | 3 PACKAGE="db" |
pascal@1155 | 4 VERSION="4.5.20" |
pascal@1423 | 5 CATEGORY="misc" |
pascal@1155 | 6 SHORT_DESC="Berkeley database system." |
pascal@1155 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1155 | 8 TARBALL="$PACKAGE-$VERSION.NC.tar.gz" |
pascal@1155 | 9 WEB_SITE="http://www.oracle.com/technology/software/products/berkeley-db/db/" |
pascal@1155 | 10 WGET_URL="http://download.oracle.com/berkeley-db/$TARBALL" |
pascal@1155 | 11 BUILD_DEPENDS="patch" |
pascal@1155 | 12 DEPENDS="libdb" |
pascal@1155 | 13 |
pascal@1155 | 14 # Rules to configure and make the package. |
pascal@1155 | 15 compile_rules() |
pascal@1155 | 16 { |
pascal@2412 | 17 if [ -L $(which patch) ]; then |
pascal@2412 | 18 echo "Please reinstall patch !" |
pascal@2412 | 19 return 1 |
pascal@2412 | 20 fi |
pascal@1155 | 21 ln -s $PACKAGE-$VERSION.NC $src |
pascal@1155 | 22 cd $src |
pascal@1554 | 23 wget http://www.oracle.com/technology/products/berkeley-db/db/update/4.5.20/patch.4.5.20.1 || return 1 |
pascal@1454 | 24 [ -f done.patch.4.5.20.1 ] || patch -p0 < patch.4.5.20.1 |
pascal@1454 | 25 touch done.patch.4.5.20.1 |
pascal@1155 | 26 cd build_unix |
pascal@1155 | 27 ../dist/configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1554 | 28 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1554 | 29 make && |
pascal@1155 | 30 make DESTDIR=$PWD/../_pkg install |
pascal@1155 | 31 } |
pascal@1155 | 32 |
pascal@1155 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1155 | 34 genpkg_rules() |
pascal@1155 | 35 { |
pascal@1155 | 36 mkdir -p $fs/usr |
pascal@1155 | 37 cp -a $_pkg/usr/bin $fs/usr |
pascal@1155 | 38 # Package all db pkgs |
pascal@1155 | 39 for i in $(cd $WOK; ls -d db-* libdb) |
pascal@1155 | 40 do |
pascal@1155 | 41 tazwok genpkg $i |
pascal@1155 | 42 done |
pascal@1155 | 43 } |
erjo@1191 | 44 |
erjo@1191 | 45 clean_wok() |
erjo@1191 | 46 { |
erjo@1191 | 47 rm -rf PACKAGE-$VERSION.NC |
erjo@1191 | 48 } |