apksigner: Update from 0.4 to 0.7
[termux-packages] / packages / apksigner / build.sh
CommitLineData
47182adc
FF
1TERMUX_PKG_HOMEPAGE=https://github.com/fornwall/apksigner
2TERMUX_PKG_DESCRIPTION="APK signing tool"
14f80a05
FF
3TERMUX_PKG_VERSION=0.7
4TERMUX_PKG_SHA256=340560c4f75af3501f037452bcf184fa48fd18bc877a4cce9a51a3fa047b4b38
47182adc 5TERMUX_PKG_SRCURL=https://github.com/fornwall/apksigner/archive/v${TERMUX_PKG_VERSION}.tar.gz
47182adc
FF
6TERMUX_PKG_BUILD_IN_SRC=yes
7TERMUX_PKG_PLATFORM_INDEPENDENT=true
8
9termux_step_make () {
091db535
FF
10 mkdir -p $TERMUX_PREFIX/share/{dex,man/man1}
11
14f80a05
FF
12 ./gradlew
13 $TERMUX_DX --dex --output $TERMUX_PREFIX/share/dex/apksigner.dex ./build/libs/src-all.jar
47182adc
FF
14 echo '#!/bin/sh' > $TERMUX_PREFIX/bin/apksigner
15 echo "dalvikvm -cp $TERMUX_PREFIX/share/dex/apksigner.dex net.fornwall.apksigner.Main \$@" >> $TERMUX_PREFIX/bin/apksigner
16 chmod +x $TERMUX_PREFIX/bin/apksigner
17
18 cp apksigner.1 $TERMUX_PREFIX/share/man/man1/
19}