# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=go-context
_pkgname=context
_vendor=gorilla
pkgver=1.1
pkgrel=2
pkgdesc="A golang registry for global request variables"
url="http://www.gorillatoolkit.org"
arch="noarch"
license="BSD-3-Clause"
subpackages="$pkgname-doc"
depends="go"
options="!check" # no testsuite
source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	return 0
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \
		"$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_pkgname
	for file in \
		LICENSE \
		README.md \
		COPYRIGHT \
		AUTHORS \
		; do \
		test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$pkgname
	done
	mv * "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_pkgname
}

sha512sums="a4864abec77e82c63f075c18517b4c486e6196b80f234f667d3d7d29bbd67967f0c0df80a398c0aa9c7a6d4e57326b3c3045f541a258d02c02d6ced5f0bc2327  go-context-1.1.tar.gz"
