termux-packages/packages/termux-am/build.sh

22 lines
920 B
Bash
Raw Normal View History

2018-02-03 17:13:18 +01:00
TERMUX_PKG_HOMEPAGE=https://github.com/michalbednarski/TermuxAm
TERMUX_PKG_DESCRIPTION="Android Oreo-compatible am command reimplementation"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="Apache-2.0"
2018-02-03 17:13:18 +01:00
TERMUX_PKG_MAINTAINER="Michal Bednarski @michalbednarski"
TERMUX_PKG_VERSION=0.2
TERMUX_PKG_SHA256=bde5ca8a6778a8be99370b35453eca92c8283c2987016a3d8ea6eddbad0c3f0e
TERMUX_PKG_SRCURL=https://github.com/michalbednarski/TermuxAm/archive/v$TERMUX_PKG_VERSION.zip
2018-02-03 17:13:18 +01:00
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_CONFLICTS="termux-tools (<< 0.51)"
termux_step_make () {
export ANDROID_HOME
GRADLE_OPTS=" -Dorg.gradle.daemon=false" ./gradlew :app:assembleRelease
2018-02-03 17:13:18 +01:00
}
termux_step_make_install () {
cp $TERMUX_PKG_SRCDIR/am-libexec-packaged $TERMUX_PREFIX/bin/am
mkdir -p $TERMUX_PREFIX/libexec/termux-am
cp $TERMUX_PKG_SRCDIR/app/build/outputs/apk/release/app-release-unsigned.apk $TERMUX_PREFIX/libexec/termux-am/am.apk
}