wok view apache-ant/receipt @ rev 25576

Up nimrod (1.6.12)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 13 17:57:27 2023 +0000 (19 months ago)
parents bd7510903310
children
line source
1 # SliTaz package receipt.
3 PACKAGE="apache-ant"
4 VERSION="1.10.12"
5 CATEGORY="development"
6 SHORT_DESC="A Java-based build tool."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="Apache"
9 WEB_SITE="https://ant.apache.org/"
11 TARBALL="$PACKAGE-$VERSION-bin.tar.bz2"
12 WGET_URL="https://archive.apache.org/dist/ant/binaries/$TARBALL"
14 SUGGESTED=""
15 DEPENDS="jdk"
16 #DEPENDS="java-jdk"
17 BUILD_DEPENDS=""
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)-bin.tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # The only binaries that would built are Java binaries (not native binaries)
30 # Thus, to help with bootstrapping, use the binary ant release
32 mkdir -p $DESTDIR/usr/bin
34 cp -f $src/bin/*.pl $DESTDIR/usr/bin
35 cp -f $src/bin/*.py $DESTDIR/usr/bin
36 cp -f $src/bin/ant $DESTDIR/usr/bin
37 cp -f $src/bin/antRun $DESTDIR/usr/bin
39 cp -a $src/etc $DESTDIR
41 mkdir -p $DESTDIR/usr/lib
43 cp -f $src/lib/*.jar $DESTDIR/usr/lib
44 cp -f $src/lib/*.pom $DESTDIR/usr/lib
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs
52 cp -a $install/usr $fs
53 cp -a $install/etc $fs
54 }