aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-context/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-01-03 14:51:31 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-01-03 15:22:00 +0000
commitfe856c9aec584334df577d1d4efc14c21424ec9c (patch)
tree4c518b1b82e3896e19de087bd346f5691ae9a5cb /testing/go-context/APKBUILD
parent1d94a29bc63b874ffdb3d9491e7c04c31073e26a (diff)
downloadaports-fe856c9aec584334df577d1d4efc14c21424ec9c.tar.bz2
aports-fe856c9aec584334df577d1d4efc14c21424ec9c.tar.xz
testing/go-context: new aport
A golang registry for global request variables
Diffstat (limited to 'testing/go-context/APKBUILD')
-rw-r--r--testing/go-context/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/go-context/APKBUILD b/testing/go-context/APKBUILD
new file mode 100644
index 0000000000..cc6c6595c3
--- /dev/null
+++ b/testing/go-context/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=go-context
+_realname=context
+_vendor=gorilla
+pkgver=1.1
+pkgrel=0
+pkgdesc="A golang registry for global request variables"
+url="http://www.gorillatoolkit.org"
+arch="noarch"
+license="Custom"
+depends=
+depends_dev=
+makedepends="$depends_dev"
+install=
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_realname/archive/v$pkgver.tar.gz"
+builddir="$srcdir"/$_realname-$pkgver
+
+prepare() {
+ cd "$builddir"
+}
+
+build() {
+ cd "$builddir"
+}
+
+package() {
+ cd "$builddir"
+ mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \
+ "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_realname
+ for file in \
+ LICENSE \
+ README.md \
+ COPYRIGHT \
+ AUTHORS \
+ ; do \
+ test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$pkgname
+ done
+ ls
+ mv * "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_realname || return 1
+}
+
+md5sums="990183c4f2d317c0bee3c6a54d7d9704 go-context-1.1.tar.gz"
+sha256sums="12a849b4e9a08619233d4490a281aa2d34a69f9eaf85c2295f5357927e4d1763 go-context-1.1.tar.gz"
+sha512sums="a4864abec77e82c63f075c18517b4c486e6196b80f234f667d3d7d29bbd67967f0c0df80a398c0aa9c7a6d4e57326b3c3045f541a258d02c02d6ced5f0bc2327 go-context-1.1.tar.gz"