2016-10-07 01:38:12 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/fornwall/apksigner
|
|
|
|
TERMUX_PKG_DESCRIPTION="APK signing tool"
|
2018-04-29 17:44:48 +02:00
|
|
|
TERMUX_PKG_VERSION=0.7
|
2018-07-26 12:21:43 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2018-04-29 17:44:48 +02:00
|
|
|
TERMUX_PKG_SHA256=340560c4f75af3501f037452bcf184fa48fd18bc877a4cce9a51a3fa047b4b38
|
2016-10-07 01:38:12 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/fornwall/apksigner/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
|
|
|
|
termux_step_make () {
|
2016-10-07 18:59:01 +02:00
|
|
|
mkdir -p $TERMUX_PREFIX/share/{dex,man/man1}
|
|
|
|
|
2018-07-26 12:21:43 +02:00
|
|
|
cp apksigner.1 $TERMUX_PREFIX/share/man/man1/
|
|
|
|
|
2018-08-20 23:24:18 +02:00
|
|
|
GRADLE_OPTS=" -Dorg.gradle.daemon=false" ./gradlew
|
2018-07-26 12:21:43 +02:00
|
|
|
$TERMUX_D8 \
|
|
|
|
--classpath $ANDROID_HOME/platforms/android-$TERMUX_PKG_API_LEVEL/android.jar \
|
|
|
|
--release \
|
|
|
|
--min-api $TERMUX_PKG_API_LEVEL \
|
|
|
|
--output $TERMUX_PKG_TMPDIR \
|
|
|
|
./build/libs/src-all.jar
|
|
|
|
|
|
|
|
cd $TERMUX_PKG_TMPDIR
|
|
|
|
jar cf apksigner.jar classes.dex
|
|
|
|
mv apksigner.jar $TERMUX_PREFIX/share/dex/apksigner.jar
|
|
|
|
|
2016-10-07 01:38:12 +02:00
|
|
|
echo '#!/bin/sh' > $TERMUX_PREFIX/bin/apksigner
|
2018-07-26 12:21:43 +02:00
|
|
|
echo "dalvikvm -cp $TERMUX_PREFIX/share/dex/apksigner.jar net.fornwall.apksigner.Main \$@" >> $TERMUX_PREFIX/bin/apksigner
|
2016-10-07 01:38:12 +02:00
|
|
|
chmod +x $TERMUX_PREFIX/bin/apksigner
|
|
|
|
}
|