new package: age

Requested in https://github.com/termux/termux-packages/issues/6165.
This commit is contained in:
Leonid Pliushch 2021-01-02 22:41:13 +02:00
parent 763f9ebf7e
commit 8de05c84e7
No known key found for this signature in database
GPG Key ID: 45F2964132545795

22
packages/age/build.sh Normal file
View File

@ -0,0 +1,22 @@
TERMUX_PKG_HOMEPAGE=https://github.com/FiloSottile/age
TERMUX_PKG_DESCRIPTION="A simple, modern and secure encryption tool with small explicit keys, no config options, and UNIX-style composability"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.0.0-beta5
TERMUX_PKG_SRCURL=https://github.com/FiloSottile/age/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=6d1000e233ae1011ca44ed73c72d6ffd564c4c728eb0b53ed380ca24df1f5673
termux_step_make() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
cd $TERMUX_PKG_SRCDIR
go build ./cmd/age
go build ./cmd/age-keygen
}
termux_step_make_install() {
install -Dm755 -t "${TERMUX_PREFIX}"/bin \
"${TERMUX_PKG_SRCDIR}"/age \
"${TERMUX_PKG_SRCDIR}"/age-keygen
}