wok view fastjar/receipt @ rev 25442
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 02 16:30:36 2022 +0000 (2022-09-02) |
parents | bfabe25c21ff |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="fastjar"
4 VERSION="0.98"
5 CATEGORY="development"
6 SHORT_DESC="A fast C implementation of the JDK jar utility."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://savannah.nongnu.org/projects/fastjar/"
11 WGET_URL="http://download.savannah.gnu.org/releases/fastjar/$TARBALL"
12 TAGS="java"
14 DEPENDS="glibc-base zlib"
15 BUILD_DEPENDS="slitaz-toolchain zlib-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - http://download.savannah.nongnu.org/releases/fastjar/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure \
29 --prefix=/usr \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 }