termux-packages/packages/restic-server/build.sh

24 lines
677 B
Bash
Raw Normal View History

2021-10-08 17:54:32 +02:00
TERMUX_PKG_HOMEPAGE=https://restic.net/
TERMUX_PKG_DESCRIPTION="Restic's REST backend API server"
TERMUX_PKG_LICENSE="BSD 2-Clause"
2022-01-31 19:18:51 +01:00
TERMUX_PKG_MAINTAINER="@termux"
2021-10-08 17:54:32 +02:00
TERMUX_PKG_VERSION=0.10.0
2021-10-08 23:26:10 +02:00
TERMUX_PKG_REVISION=2
2021-10-08 17:54:32 +02:00
TERMUX_PKG_SRCURL=https://github.com/restic/rest-server/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=d109cf9e9c3f36c9c8eb6d4a2bd530c5dfcd62b11687d93034e2edc0fdecf479
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
termux_setup_golang
_GOARCH="${GOARCH}"
unset GOOS GOARCH
go run build.go \
--enable-cgo \
--goos android \
--goarch "${_GOARCH}"
}
termux_step_make_install() {
install -Dm755 rest-server "${TERMUX_PREFIX}/bin/rest-server"
}