2017-04-10 22:24:50 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://micro-editor.github.io/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Modern and intuitive terminal-based text editor"
|
2017-05-29 14:10:07 +02:00
|
|
|
TERMUX_PKG_VERSION=1.2.0
|
|
|
|
TERMUX_PKG_SHA256=a07a065775f3a3e5ba710d3d7491ba7578cb7c44d4a971246e7d2be44eed938d
|
2017-04-10 22:24:50 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/zyedidia/micro/releases/download/v${TERMUX_PKG_VERSION}/micro-${TERMUX_PKG_VERSION}-src.tar.gz
|
|
|
|
TERMUX_PKG_FOLDERNAME=micro
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
termux_setup_golang
|
|
|
|
|
|
|
|
local HASH="$(git rev-parse --short HEAD)"
|
|
|
|
local VERSION="$TERMUX_PKG_VERSION"
|
|
|
|
local DATE=`date -I`
|
|
|
|
|
2017-04-10 23:46:57 +02:00
|
|
|
go get -d ./cmd/micro
|
2017-04-10 22:24:50 +02:00
|
|
|
go build -ldflags "-s -w -X main.Version=$VERSION -X main.CommitHash=$HASH -X 'main.CompileDate=$DATE'" \
|
|
|
|
-o $TERMUX_PREFIX/bin/micro \
|
|
|
|
./cmd/micro
|
|
|
|
}
|