aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-mux/APKBUILD
blob: 71b701393317ac98c996f15d0e1835c242398e76 (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.0
pkgrel=1
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="da34df7ec9533c65da72c82724888babdea5ac0f54a3d69fe1f3a8976db28c5a65fac3772582199fb3100ee636f71a12dd6c9b25c248b8fab250225f8c60f34a  go-mux-1.6.0.tar.gz"