wok view dex2jar/receipt @ rev 25770
dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 11:29:23 2024 +0000 (2 months ago) |
parents | 002a704d9c02 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="dex2jar"
4 VERSION="2.0"
5 CATEGORY="development"
6 SHORT_DESC="Tools to work with android .dex and java .class files."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://sourceforge.net/projects/dex2jar/"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="java-jre"
15 BUILD_DEPENDS=""
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/dex2jar/files/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/dex2jar-||;s|.zip.*||;q'
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/dex2jar $fs/usr/bin
28 cp -a $src/*.sh $src/lib $fs/usr/share/dex2jar
29 for i in $(cd $src ; ls *.sh); do
30 ln -s /usr/share/dex2jar/$i $fs/usr/bin/$i
31 done
32 }