aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-context/APKBUILD
blob: 9215b7f1e46ade5de3741e666ea1d4a2aec590a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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"