wok-current annotate apache-ant/receipt @ rev 25525
created recipe for lua5.1-lpeg 1.0.2
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:54:40 2023 +0100 (18 months ago) |
parents | 34da1fdf3af3 |
children | 4e2caf3cd17b |
rev | line source |
---|---|
rcx@3783 | 1 # SliTaz package receipt. |
rcx@3783 | 2 |
rcx@3783 | 3 PACKAGE="apache-ant" |
pascal@24783 | 4 VERSION="1.10.12" |
rcx@3783 | 5 CATEGORY="development" |
rcx@3783 | 6 SHORT_DESC="A Java-based build tool." |
rcx@3783 | 7 MAINTAINER="rcx@zoominternet.net" |
pascal@15361 | 8 LICENSE="Apache" |
pascal@24746 | 9 WEB_SITE="https://ant.apache.org/" |
Hans-G?nter@22485 | 10 |
rcx@3783 | 11 TARBALL="$PACKAGE-$VERSION-bin.tar.bz2" |
pascal@24972 | 12 WGET_URL="https://www.apache.org/dist/ant/binaries/$TARBALL" |
rcx@3783 | 13 |
Hans-G?nter@22485 | 14 SUGGESTED="" |
pascal@15361 | 15 DEPENDS="jdk" |
pascal@15361 | 16 #DEPENDS="java-jdk" |
pascal@15361 | 17 BUILD_DEPENDS="" |
pascal@15361 | 18 |
pascal@24126 | 19 # What is the latest version available today? |
pascal@24126 | 20 current_version() |
pascal@24126 | 21 { |
pascal@24126 | 22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24126 | 23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)-bin.tar.*|\\1|" | sort -Vr | sed q |
pascal@24126 | 24 } |
pascal@24126 | 25 |
rcx@3783 | 26 # Rules to configure and make the package. |
rcx@3783 | 27 compile_rules() |
rcx@3783 | 28 { |
rcx@3783 | 29 # The only binaries that would built are Java binaries (not native binaries) |
rcx@3783 | 30 # Thus, to help with bootstrapping, use the binary ant release |
rcx@3783 | 31 |
pascal@15361 | 32 mkdir -p $DESTDIR/usr/bin |
rcx@3783 | 33 |
Hans-G?nter@22485 | 34 cp -f $src/bin/*.pl $DESTDIR/usr/bin |
Hans-G?nter@22485 | 35 cp -f $src/bin/*.py $DESTDIR/usr/bin |
Hans-G?nter@22485 | 36 cp -f $src/bin/ant $DESTDIR/usr/bin |
Hans-G?nter@22485 | 37 cp -f $src/bin/antRun $DESTDIR/usr/bin |
Hans-G?nter@22485 | 38 |
Hans-G?nter@22485 | 39 cp -a $src/etc $DESTDIR |
rcx@3783 | 40 |
pascal@15361 | 41 mkdir -p $DESTDIR/usr/lib |
Hans-G?nter@22485 | 42 |
Hans-G?nter@22485 | 43 cp -f $src/lib/*.jar $DESTDIR/usr/lib |
Hans-G?nter@22485 | 44 cp -f $src/lib/*.pom $DESTDIR/usr/lib |
rcx@3783 | 45 } |
rcx@3783 | 46 |
rcx@3783 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3783 | 48 genpkg_rules() |
rcx@3783 | 49 { |
Hans-G?nter@22485 | 50 mkdir -p $fs |
Hans-G?nter@22485 | 51 |
Hans-G?nter@22485 | 52 cp -a $install/usr $fs |
Hans-G?nter@22485 | 53 cp -a $install/etc $fs |
rcx@3783 | 54 } |