0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-21 22:06:17 +00:00
termux-packages/disabled-packages/grv/build.sh
2024-03-25 21:40:13 +01:00

30 lines
861 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/rgburke/grv
TERMUX_PKG_DESCRIPTION="A terminal based interface for viewing Git repositories"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.3.2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=git+https://github.com/rgburke/grv
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libgit2, ncurses, ncurses-ui-libs, readline"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_golang
export GO111MODULE=off
export GOPATH=$TERMUX_PKG_BUILDDIR/_go
mkdir -p $GOPATH
ln -sfT $TERMUX_PKG_SRCDIR/cmd/grv/vendor $GOPATH/src
}
termux_step_make() {
local _DATE=$(date -u '+%Y-%m-%d %H:%M:%S %Z')
go build -ldflags "-X \"main.version=$TERMUX_PKG_VERSION\" -X \"main.buildDateTime=$_DATE\"" \
./cmd/grv
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin grv
}