aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-httputils
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-01-03 14:52:13 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-01-03 15:22:00 +0000
commitc97a7c5d87b5144cbe3b178aa49278c75a7bb2b8 (patch)
tree4fc00227f4fdf49bb5f035e8502ec705d3a49ddb /testing/go-httputils
parentfe856c9aec584334df577d1d4efc14c21424ec9c (diff)
downloadaports-c97a7c5d87b5144cbe3b178aa49278c75a7bb2b8.tar.bz2
aports-c97a7c5d87b5144cbe3b178aa49278c75a7bb2b8.tar.xz
testing/go-httputils: new aport
Go support library for HTTP servers
Diffstat (limited to 'testing/go-httputils')
-rw-r--r--testing/go-httputils/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/go-httputils/APKBUILD b/testing/go-httputils/APKBUILD
new file mode 100644
index 0000000000..0e5ae8ad37
--- /dev/null
+++ b/testing/go-httputils/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=go-httputils
+_realname=httputils
+_vendor="strukturag"
+pkgver=012
+pkgrel=0
+pkgdesc="Go support library for HTTP servers"
+url="https://github.com/$_vendor/$_realname"
+arch="noarch"
+license="Custom"
+depends=
+depends_dev=
+makedepends="$depends_dev"
+install=
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/strukturag/$_realname/archive/${_realname}_v$pkgver.tar.gz"
+builddir="$srcdir"/${_realname}-${_realname}_v$pkgver
+
+
+prepare() {
+ cd "$builddir"
+}
+
+build() {
+ cd "$builddir"
+}
+
+package() {
+ cd "$builddir"
+ mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \
+ "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname
+ for file in \
+ LICENSE \
+ README.md \
+ COPYRIGHT \
+ AUTHORS \
+ ; do \
+ test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$_realname
+ done
+ mv * "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname || return 1
+}
+
+md5sums="7c1a1b13471098238e8714dc87a144fd go-httputils-012.tar.gz"
+sha256sums="a2e39573d555ed035148ba83e6cde6d18a5a836ae6da535a85f11ff5e2eb0df0 go-httputils-012.tar.gz"
+sha512sums="e508c121f6b226dcc8f7eea2104e3bf620ada5c8d66e5569cb3e6f33f95d7ce5cac97f4e1b34afb34fc13e280ec9e3ea846b408412ddf3badcfb70674a328d84 go-httputils-012.tar.gz"