get-scripts rev 26

Add apk-studio
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 19 13:55:21 2014 +0100 (2014-11-19)
parents a91a3ad69b69
children dd4436ade9f9
files apk-studio
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/apk-studio	Wed Nov 19 13:55:21 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +WEB_SITE="https://apkstudio.codeplex.com/"
     1.5 +VERSION="2.0.3b"
     1.6 +TARBALL="apkstudio-$VERSION-ubuntu-linux.tar.bz2"
     1.7 +CATEGORY="development"
     1.8 +LICENSE="CDDL"
     1.9 +WGET_URL="http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=apkstudio&DownloadId=909467&FileTime=130554250225130000&Build=20941"
    1.10 +SHORT_DESC="Android revese-engineering"
    1.11 +BUILD_DEPENDS="wget"
    1.12 +
    1.13 +wget --no-check-certificate -O $TARBALL "$WGET_URL"
    1.14 +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
    1.15 +
    1.16 +mkdir -p $PACKAGE-$VERSION/usr/share/$PACKAGE $PACKAGE-$VERSION/usr/bin
    1.17 +tar xjf $TARBALL -C $PACKAGE-$VERSION/usr/share/$PACKAGE
    1.18 +cat > $PACKAGE-$SOURCE/usr/bin/apkstudio <<EOT
    1.19 +#!/bin/sh
    1.20 +
    1.21 +APKSTUDIO_DIRECTORY=/usr/share/$PACKAGE
    1.22 +APKSTUDIO_BINARY=$PACKAGE
    1.23 +export LD_LIBRARY_PATH=\$APKSTUDIO_DIRECTORY
    1.24 +export QT_QPA_PLATFORM_PLUGIN_PATH=\$APKSTUDIO_DIRECTORY/platforms
    1.25 +\$APKSTUDIO_DIRECTORY/\$APKSTUDIO_BINARY "\$@" -style gtk+
    1.26 +EOT
    1.27 +chmod +x $PACKAGE-$SOURCE/usr/bin/apkstudio
    1.28 +
    1.29 +set +e