wok annotate apache-ant/receipt @ rev 24509
updated edid-decode (fork-point-4 -> fork-point-5)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 20 17:31:17 2022 +0100 (2022-02-20) |
parents | 0b02213fe0a1 |
children | cb67b4f8be05 |
rev | line source |
---|---|
rcx@3783 | 1 # SliTaz package receipt. |
rcx@3783 | 2 |
rcx@3783 | 3 PACKAGE="apache-ant" |
pascal@23834 | 4 VERSION="1.10.8" |
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" |
Hans-G?nter@22485 | 9 WEB_SITE="http://ant.apache.org/" |
Hans-G?nter@22485 | 10 |
rcx@3783 | 11 TARBALL="$PACKAGE-$VERSION-bin.tar.bz2" |
rcx@3783 | 12 WGET_URL="http://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 } |