aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2018-07-24 16:29:18 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2018-07-25 00:03:27 +0200
commit06d068b61042ff85f92c4d970c425a42753e6127 (patch)
treec3df7caf768560064833ec76a8f80e193ea176a9
parent53b72f1f069768f6abd8e761aa93133812c858b5 (diff)
downloadaports-06d068b61042ff85f92c4d970c425a42753e6127.tar.bz2
aports-06d068b61042ff85f92c4d970c425a42753e6127.tar.xz
testing/rest-server: new aport
-rw-r--r--testing/rest-server/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/rest-server/APKBUILD b/testing/rest-server/APKBUILD
new file mode 100644
index 0000000000..1047db7ea9
--- /dev/null
+++ b/testing/rest-server/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
+pkgname=rest-server
+pkgver=0.9.7
+pkgrel=0
+pkgdesc="A high performance HTTP server that implements restic's REST backend API"
+url="https://github.com/restic/rest-server"
+arch="all"
+license="BSD-2-Clause"
+depends=""
+makedepends="go"
+install=""
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/restic/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/src/github.com/restic/$pkgname"
+
+export GOPATH="$srcdir"
+
+prepare() {
+ mkdir -p "${builddir%/*}"
+ ln -s "$srcdir"/$pkgname-$pkgver "$builddir"
+ default_prepare
+}
+
+build() {
+ cd "$builddir"
+ go build ./cmd/...
+}
+
+package() {
+ cd "$builddir"
+
+ install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
+ install -Dm644 README.md \
+ "$pkgdir"/usr/share/doc/$pkgname/README.md
+}
+
+sha512sums="2288f93703d03859ec1a5d9085eda7ca5b82e801bc74cd66fcc58601e73a2bf5150f85e948749ca7d95e4598087acf5115499404ccbbfba62a4cc9043437ed29 rest-server-0.9.7.tar.gz"