wok annotate db/receipt @ rev 24699
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 19:47:29 2022 +0000 (2022-03-13) |
parents | 6e8b1bcb30e2 |
children | bd7510903310 |
rev | line source |
---|---|
pascal@1155 | 1 # SliTaz package receipt. |
pascal@1155 | 2 |
pascal@1155 | 3 PACKAGE="db" |
devl547@19902 | 4 VERSION="6.2.23" |
pascal@1423 | 5 CATEGORY="misc" |
pascal@1155 | 6 SHORT_DESC="Berkeley database system." |
pascal@1155 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15472 | 8 LICENSE="BSD" |
pascal@1155 | 9 TARBALL="$PACKAGE-$VERSION.NC.tar.gz" |
pascal@20671 | 10 WEB_SITE="https://www.oracle.com/database/berkeley-db/db.html" |
pascal@1155 | 11 WGET_URL="http://download.oracle.com/berkeley-db/$TARBALL" |
slaxemulator@10298 | 12 TAGS="database" |
pankso@12989 | 13 HOST_ARCH="i486 arm" |
slaxemulator@10298 | 14 |
slaxemulator@10298 | 15 DEPENDS="glibc-base libdb" |
pankso@12989 | 16 BUILD_DEPENDS="" |
pascal@1155 | 17 |
pascal@24699 | 18 # What is the latest version available today? |
pascal@24699 | 19 current_version() |
pascal@24699 | 20 { |
pascal@24699 | 21 wget -O - https://www.oracle.com/database/technologies/related/berkeleydb-downloads.html 2>/dev/null | \ |
pascal@24699 | 22 sed '/Berkeley DB [0-9]/!d;s|.*(||;s|).*||;q' |
pascal@24699 | 23 } |
pascal@24699 | 24 |
pascal@1155 | 25 # Rules to configure and make the package. |
pascal@1155 | 26 compile_rules() |
pascal@1155 | 27 { |
gokhlayeh@8176 | 28 cd $src/build_unix |
pankso@12989 | 29 ../dist/configure \ |
al@18523 | 30 --enable-cxx \ |
pankso@12989 | 31 --enable-compat185 \ |
pascal@13018 | 32 --enable-dbm \ |
devl547@19902 | 33 --disable-static \ |
slaxemulator@10298 | 34 $CONFIGURE_ARGS && |
slaxemulator@10298 | 35 make && make install |
pascal@1155 | 36 } |
pascal@1155 | 37 |
pascal@1155 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1155 | 39 genpkg_rules() |
pascal@1155 | 40 { |
pascal@4533 | 41 mkdir -p $fs/usr |
pankso@12989 | 42 cp -a $install/usr/bin $fs/usr |
pascal@1155 | 43 } |