# SliTaz package receipt. PACKAGE="dex2jar" VERSION="2.0" CATEGORY="development" SHORT_DESC="Tools to work with android .dex and java .class files." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="Apache" WEB_SITE="https://sourceforge.net/projects/dex2jar/" TARBALL="$PACKAGE-$VERSION.zip" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="java-jre" BUILD_DEPENDS="" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/dex2jar/files/ 2>/dev/null | \ sed '/scope="row/!d;s|.*/dex2jar-||;s|.zip.*||;q' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/dex2jar $fs/usr/bin cp -a $src/*.sh $src/lib $fs/usr/share/dex2jar for i in $(cd $src ; ls *.sh); do ln -s /usr/share/dex2jar/$i $fs/usr/bin/$i done }