2021-03-13 13:13:59 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/matsuyoshi30/germanium
|
2021-03-14 04:56:58 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Generate image from source code"
|
2021-03-13 13:13:59 +01:00
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
|
|
TERMUX_PKG_MAINTAINER="Raven Ravener <ravener.anime@gmail.com>"
|
2021-08-14 02:21:27 +02:00
|
|
|
TERMUX_PKG_VERSION=1.2.2
|
2021-12-02 11:55:04 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2021-03-13 13:13:59 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/matsuyoshi30/germanium/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2021-08-14 02:21:27 +02:00
|
|
|
TERMUX_PKG_SHA256=859fed54957f46e25b4577b561a810186cc21c1f0dfd99d5226e99764df195d9
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2021-03-16 16:50:09 +01:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
2021-12-02 11:55:04 +01:00
|
|
|
termux_step_post_get_source() {
|
2021-03-13 13:13:59 +01:00
|
|
|
termux_setup_golang
|
2021-12-02 11:55:04 +01:00
|
|
|
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
|
2021-03-13 13:13:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2021-03-16 16:50:09 +01:00
|
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin germanium
|
2021-03-13 13:13:59 +01:00
|
|
|
}
|