new package: hcl
This commit is contained in:
parent
bad4c0d458
commit
d8e8a411ec
29
packages/hcl/build.sh
Normal file
29
packages/hcl/build.sh
Normal file
@ -0,0 +1,29 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/hashicorp/hcl
|
||||
TERMUX_PKG_DESCRIPTION="A toolkit for creating structured configuration languages"
|
||||
TERMUX_PKG_LICENSE="MPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=2.11.1
|
||||
TERMUX_PKG_SRCURL=https://github.com/hashicorp/hcl/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=42d7db704b311a84e455061e221a4326f996e266ebce29514714118d2a204dab
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
_HCL_TOOLS="hcldec hclfmt hclspecsuite"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
termux_setup_golang
|
||||
export GOPATH=$TERMUX_PKG_BUILDDIR/_go
|
||||
mkdir -p $GOPATH
|
||||
go mod tidy
|
||||
}
|
||||
|
||||
termux_step_make() {
|
||||
for f in $_HCL_TOOLS; do
|
||||
go install ./cmd/$f
|
||||
done
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
for f in $_HCL_TOOLS; do
|
||||
install -Dm700 -t $TERMUX_PREFIX/bin $GOPATH/bin/*/$f
|
||||
done
|
||||
}
|
Loading…
Reference in New Issue
Block a user