wok-6.x annotate fastjar/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 380ffe05937a
children 00e3b45c063b
rev   line source
rcx@3481 1 # SliTaz package receipt.
rcx@3481 2
rcx@3481 3 PACKAGE="fastjar"
rcx@5999 4 VERSION="0.98"
rcx@3481 5 CATEGORY="development"
rcx@3481 6 SHORT_DESC="A fast C implementation of the JDK jar utility."
rcx@3481 7 MAINTAINER="rcx@zoominternet.net"
pascal@15000 8 LICENSE="GPL2"
rcx@3481 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
rcx@3770 10 WEB_SITE="http://savannah.nongnu.org/projects/fastjar/"
rcx@3769 11 WGET_URL="http://download.savannah.gnu.org/releases-noredirect/fastjar/$TARBALL"
jozee@4936 12 TAGS="java"
rcx@3481 13
pascal@15000 14 DEPENDS="glibc-base zlib"
pascal@15000 15 BUILD_DEPENDS="slitaz-toolchain zlib-dev"
pascal@15000 16
pascal@24439 17 # What is the latest version available today?
pascal@24439 18 current_version()
pascal@24439 19 {
pascal@24439 20 wget -O - http://download.savannah.nongnu.org/releases/fastjar/ 2>/dev/null | \
pascal@24439 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24439 22 }
pascal@24439 23
rcx@3481 24 # Rules to configure and make the package.
rcx@3481 25 compile_rules()
rcx@3481 26 {
rcx@3481 27 cd $src
rcx@3481 28 ./configure \
rcx@3481 29 --prefix=/usr \
rcx@3481 30 $CONFIGURE_ARGS &&
rcx@3481 31 make &&
pascal@15000 32 make DESTDIR=$DESTDIR install
rcx@3481 33 }
rcx@3481 34
rcx@3481 35 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3481 36 genpkg_rules()
rcx@3481 37 {
rcx@3481 38 mkdir -p $fs/usr
pascal@15000 39 cp -a $install/usr/bin $fs/usr
rcx@3481 40 }
rcx@3481 41