apksigner, beanshell, dx, ecj: update postinst script

Specify extensions of files which should be removed instead of
using wildcard.
This commit is contained in:
Leonid Pliushch 2020-07-26 20:32:34 +03:00
parent 33a3e4ed91
commit e33db744d9
4 changed files with 12 additions and 12 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://developer.android.com/studio/command-line/apksigner
TERMUX_PKG_DESCRIPTION="APK signing tool"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_VERSION=${TERMUX_ANDROID_BUILD_TOOLS_VERSION}
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_SKIP_SRC_EXTRACT=true
@ -54,8 +54,8 @@ termux_step_make_install() {
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!${TERMUX_PREFIX}/bin/sh
rm -f $TERMUX_PREFIX/share/dex/oat/*/apksigner.* >/dev/null 2>&1
#!${TERMUX_PREFIX}/bin/bash
rm -f $TERMUX_PREFIX/share/dex/oat/*/apksigner.{art,oat,odex,vdex} >/dev/null 2>&1
exit 0
EOF
}

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Small, free, embeddable, source level Java interpreter w
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
TERMUX_PKG_VERSION=2.0b6
TERMUX_PKG_REVISION=6
TERMUX_PKG_REVISION=7
TERMUX_PKG_SRCURL=https://github.com/beanshell/beanshell/releases/download/$TERMUX_PKG_VERSION/bsh-$TERMUX_PKG_VERSION.jar
TERMUX_PKG_SHA256=a17955976070c0573235ee662f2794a78082758b61accffce8d3f8aedcd91047
TERMUX_PKG_DEPENDS="dash, termux-tools"
@ -37,8 +37,8 @@ termux_step_make_install() {
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!${TERMUX_PREFIX}/bin/sh
rm -f $TERMUX_PREFIX/share/dex/oat/*/beanshell.* >/dev/null 2>&1
#!${TERMUX_PREFIX}/bin/bash
rm -f $TERMUX_PREFIX/share/dex/oat/*/beanshell.{art,oat,odex,vdex} >/dev/null 2>&1
exit 0
EOF
}

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://developer.android.com/tools/help/index.html
TERMUX_PKG_DESCRIPTION="Command which takes in Java class files and converts them to format executable by Dalvik VM"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_VERSION=1:1.16
TERMUX_PKG_REVISION=4
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://dl.bintray.com/xeffyr/sources/dx/dx-android-${TERMUX_PKG_VERSION:2}.jar
TERMUX_PKG_SHA256=b9b7917267876b74c8ff6707e7a576c93b6dfe8cacc4f1cc791d606bcbbb7bd5
TERMUX_PKG_SKIP_SRC_EXTRACT=true
@ -39,8 +39,8 @@ termux_step_make_install() {
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!${TERMUX_PREFIX}/bin/sh
rm -f $TERMUX_PREFIX/share/dex/oat/*/dx.* >/dev/null 2>&1
#!${TERMUX_PREFIX}/bin/bash
rm -f $TERMUX_PREFIX/share/dex/oat/*/dx.{art,oat,odex,vdex} >/dev/null 2>&1
exit 0
EOF
}

View File

@ -5,7 +5,7 @@ TERMUX_PKG_LICENSE="EPL-2.0"
_VERSION=4.12
local _DATE=201906051800
TERMUX_PKG_VERSION=1:${_VERSION}
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=http://archive.eclipse.org/eclipse/downloads/drops${_VERSION:0:1}/R-${_VERSION}-${_DATE}/ecj-${_VERSION}.jar
TERMUX_PKG_SHA256=69dad18a1fcacd342a7d44c5abf74f50e7529975553a24c64bce0b29b86af497
TERMUX_PKG_PLATFORM_INDEPENDENT=true
@ -86,8 +86,8 @@ termux_step_make() {
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!${TERMUX_PREFIX}/bin/sh
rm -f $TERMUX_PREFIX/share/dex/oat/*/ecj.* >/dev/null 2>&1
#!${TERMUX_PREFIX}/bin/bash
rm -f $TERMUX_PREFIX/share/dex/oat/*/ecj.{art,oat,odex,vdex} >/dev/null 2>&1
exit 0
EOF
}