From fe856c9aec584334df577d1d4efc14c21424ec9c Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Tue, 3 Jan 2017 14:51:31 +0000 Subject: testing/go-context: new aport A golang registry for global request variables --- testing/go-context/APKBUILD | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 testing/go-context/APKBUILD (limited to 'testing/go-context') 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 +# 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" -- cgit v1.2.3