feat(restic-server): enable auto-update, upgrade to 0.11.0

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
This commit is contained in:
Aditya Alok 2022-04-16 16:16:38 +05:30
parent c3e4fa59b1
commit 169273e3a1
No known key found for this signature in database
GPG Key ID: 345AE134142077D8
2 changed files with 3 additions and 15 deletions

View File

@ -2,11 +2,11 @@ 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.10.0
TERMUX_PKG_REVISION=2
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=d109cf9e9c3f36c9c8eb6d4a2bd530c5dfcd62b11687d93034e2edc0fdecf479
TERMUX_PKG_SHA256=cd9b35ad2224244207a967ebbc78d84f4298d725e95c1fa9341ed95a350ea68f
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
termux_step_make() {
termux_setup_golang

View File

@ -1,12 +0,0 @@
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",
}