wok view apache-ant/receipt @ rev 24126

Add eudev-lib
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 14 06:54:52 2021 +0000 (2021-10-14)
parents 0b02213fe0a1
children cb67b4f8be05
line source
1 # SliTaz package receipt.
3 PACKAGE="apache-ant"
4 VERSION="1.10.8"
5 CATEGORY="development"
6 SHORT_DESC="A Java-based build tool."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="Apache"
9 WEB_SITE="http://ant.apache.org/"
11 TARBALL="$PACKAGE-$VERSION-bin.tar.bz2"
12 WGET_URL="http://www.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 }