termux-packages/packages/micro/build.sh
2017-10-14 17:05:12 +02:00

25 lines
676 B
Bash

TERMUX_PKG_HOMEPAGE=https://micro-editor.github.io/
TERMUX_PKG_DESCRIPTION="Modern and intuitive terminal-based text editor"
TERMUX_PKG_VERSION=1.3.3
TERMUX_PKG_SHA256=142f1fcddb4fa5851a9144fb8d0fc3b53545a33b9710ed160c1dbd65c82e8f59
TERMUX_PKG_SRCURL=https://github.com/zyedidia/micro/releases/download/v${TERMUX_PKG_VERSION}/micro-${TERMUX_PKG_VERSION}-src.tar.gz
termux_step_make() {
return
}
termux_step_make_install() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
local MICRO_SRC=$GOPATH/src/github.com/zyedidia/micro
cd $TERMUX_PKG_SRCDIR
mkdir -p $MICRO_SRC
cp -R . $MICRO_SRC
cd $MICRO_SRC
make build-quick
mv micro $TERMUX_PREFIX/bin/micro
}