termux-packages/packages/restic-server/build.sh
Aditya Alok 169273e3a1
feat(restic-server): enable auto-update, upgrade to 0.11.0
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-18 00:52:12 +05:30

24 lines
683 B
Bash

TERMUX_PKG_HOMEPAGE=https://restic.net/
TERMUX_PKG_DESCRIPTION="Restic's REST backend API server"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.11.0
TERMUX_PKG_SRCURL=https://github.com/restic/rest-server/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=cd9b35ad2224244207a967ebbc78d84f4298d725e95c1fa9341ed95a350ea68f
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=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"
}