move from unstable: restic-server

This commit is contained in:
Leonid Pliushch 2021-10-08 18:54:32 +03:00
parent fe835cf62b
commit d5a1ea06a9
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,23 @@
TERMUX_PKG_HOMEPAGE=https://restic.net/
TERMUX_PKG_DESCRIPTION="Restic's REST backend API server"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
TERMUX_PKG_VERSION=0.10.0
TERMUX_PKG_REVISION=1
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"
}

View File

@ -0,0 +1,12 @@
diff -uNr rest-server-0.9.8/cmd/rest-server/main.go rest-server-0.9.8.mod/cmd/rest-server/main.go
--- rest-server-0.9.8/cmd/rest-server/main.go 2018-06-15 00:53:29.000000000 +0300
+++ rest-server-0.9.8.mod/cmd/rest-server/main.go 2020-02-18 14:56:01.369738081 +0200
@@ -26,7 +26,7 @@
}
var server = restserver.Server{
- Path: "/tmp/restic",
+ Path: "@TERMUX_PREFIX@/tmp/restic",
Listen: ":8000",
}