diff --git a/packages/apksigner-old/build.sh b/packages/apksigner-old/build.sh deleted file mode 100644 index ee85c6710..000000000 --- a/packages/apksigner-old/build.sh +++ /dev/null @@ -1,40 +0,0 @@ -TERMUX_PKG_HOMEPAGE=https://github.com/fornwall/apksigner -TERMUX_PKG_DESCRIPTION="APK signing tool (old variant by @fornwall)" -TERMUX_PKG_LICENSE="Apache-2.0" -TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION=0.7 -TERMUX_PKG_SRCURL=https://github.com/fornwall/apksigner/archive/v${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=340560c4f75af3501f037452bcf184fa48fd18bc877a4cce9a51a3fa047b4b38 -TERMUX_PKG_CONFLICTS="apksigner" -TERMUX_PKG_BUILD_IN_SRC=true -TERMUX_PKG_PLATFORM_INDEPENDENT=true - -termux_step_make() { - mkdir -p $TERMUX_PREFIX/share/{dex,man/man1} - - cp apksigner.1 $TERMUX_PREFIX/share/man/man1/ - - GRADLE_OPTS=" -Dorg.gradle.daemon=false" ./gradlew - $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 - - echo '#!/bin/sh' > $TERMUX_PREFIX/bin/apksigner - echo "dalvikvm -Xcompiler-option --compiler-filter=speed -cp $TERMUX_PREFIX/share/dex/apksigner.jar net.fornwall.apksigner.Main \"\$@\"" >> $TERMUX_PREFIX/bin/apksigner - chmod +x $TERMUX_PREFIX/bin/apksigner -} - -termux_step_create_debscripts() { - cat <<- EOF > ./postinst - #!${TERMUX_PREFIX}/bin/bash - rm -f $TERMUX_PREFIX/share/dex/oat/*/apksigner.{art,oat,odex,vdex} >/dev/null 2>&1 - exit 0 - EOF -}