new package: skate

This commit is contained in:
Tee KOBAYASHI 2022-12-01 00:15:14 +09:00 committed by xtkoba
parent 88226334e7
commit 9751274326
1 changed files with 23 additions and 0 deletions

23
packages/skate/build.sh Normal file
View File

@ -0,0 +1,23 @@
TERMUX_PKG_HOMEPAGE=https://github.com/charmbracelet/skate
TERMUX_PKG_DESCRIPTION="A personal key-value store"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.2.1
TERMUX_PKG_SRCURL=https://github.com/charmbracelet/skate/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=a8ae0daeaae71462b8b50b042c428074eb0a69cdcfcb37b508f4f0617901d697
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_golang
go mod init || :
go mod tidy
}
termux_step_make() {
go build
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin skate
}