wok-current annotate dex2jar/receipt @ rev 24807
Add fast-lzma2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 22 15:17:43 2022 +0000 (2022-03-22) |
parents | dd80d134f7ea |
children | 78727b04c002 |
rev | line source |
---|---|
pascal@17275 | 1 # SliTaz package receipt. |
pascal@17275 | 2 |
pascal@17275 | 3 PACKAGE="dex2jar" |
Hans-G?nter@20822 | 4 VERSION="2.0" |
pascal@17275 | 5 CATEGORY="development" |
pascal@17275 | 6 SHORT_DESC="Tools to work with android .dex and java .class files." |
pascal@17275 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17275 | 8 LICENSE="Apache" |
Hans-G?nter@20822 | 9 WEB_SITE="https://sourceforge.net/projects/dex2jar/" |
Hans-G?nter@20822 | 10 |
pascal@17275 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
Hans-G?nter@20822 | 12 WGET_URL="https://sourceforge.net/projects/$PACKAGE/files/$TARBALL" |
pascal@17275 | 13 |
pascal@17275 | 14 DEPENDS="java-jre" |
Hans-G?nter@20822 | 15 BUILD_DEPENDS="" |
pascal@17275 | 16 |
pascal@24361 | 17 # What is the latest version available today? |
pascal@24361 | 18 current_version() |
pascal@24361 | 19 { |
pascal@24361 | 20 wget -O - https://sourceforge.net/projects/dex2jar/files/ 2>/dev/null | \ |
pascal@24361 | 21 sed '/scope="row/!d;s|.*/dex2jar-||;s|.zip.*||;q' |
pascal@24361 | 22 } |
pascal@24361 | 23 |
pascal@17275 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17275 | 25 genpkg_rules() |
pascal@17275 | 26 { |
pascal@17275 | 27 mkdir -p $fs/usr/share/dex2jar $fs/usr/bin |
pascal@17275 | 28 cp -a $src/*.sh $src/lib $fs/usr/share/dex2jar |
pascal@17275 | 29 for i in $(cd $src ; ls *.sh); do |
pascal@17275 | 30 ln -s /usr/share/dex2jar/$i $fs/usr/bin/$i |
pascal@17275 | 31 done |
pascal@17275 | 32 } |