0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-13 03:00:31 +00:00
2024-04-23 20:25:35 +02:00

27 lines
787 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/matsuyoshi30/germanium
TERMUX_PKG_DESCRIPTION="Generate image from source code"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.2.3"
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://github.com/matsuyoshi30/germanium/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=69c818f06bbd7ea562afb5ed38b24fc2e9e9a447d5668d995314da5203e72de3
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_post_get_source() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_SRCDIR/go
go get -d ./cmd/germanium
chmod +w $GOPATH -R
}
termux_step_make() {
export GOPATH=$TERMUX_PKG_SRCDIR/go
go build -o germanium -v ./cmd/germanium
}
termux_step_make_install() {
install -Dm700 -t "$TERMUX_PREFIX"/bin germanium
}