aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-mux/APKBUILD
blob: 04eed39e8c223bfedccbf6e454f57eada9853195 (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=go-mux
_pkgname=mux
_vendor=gorilla
pkgver=1.6.2
pkgrel=0
pkgdesc="A powerful URL router and dispatcher for golang"
url="http://www.gorillatoolkit.org"
arch="noarch"
license="BSD-3-Clause"
depends="go"
subpackages="$pkgname-doc"
options="!check" # no testsuite
source="$pkgname-$pkgver.tar.gz::https://github.com/gorilla/$_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/github.com/$_vendor/$_pkgname
	for file in \
		LICENSE \
		README.* \
		COPYRIGHT \
		AUTHORS \
		; do \
		test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$_pkgname
	done
	mv *.go "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_pkgname
}

sha512sums="f4ea99c13839181f891b5bd47e060c0fde21219cee3550d65884f6f1ce7a7310b55f97c3da1e4a769412ca21f1d0d2d02e5427c63580c407091b963236cd82d1  go-mux-1.6.2.tar.gz"