aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-websocket/APKBUILD
blob: 37b1ff5547189e25e66a64b3911f53c75fafd9ec (plain) (blame)
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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=go-websocket
_pkgname=websocket
_vendor=gorilla
pkgver=1.4.0
pkgrel=0
pkgdesc="A WebSocket implementation for Go"
url="http://www.gorillatoolkit.org"
arch="noarch"
license="BSD-2-Clause"
depends="go"
subpackages="$pkgname-doc"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

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

sha512sums="c358358d8c081e32eb06bde901c1d060de7ca08c2a60541dc06f70936a94de3d6a8ae26dd86ebceeeef6c2b75f9c79a0c4a1f8fc6ee84f5ed7ec9fe6f9c7dee4  go-websocket-1.4.0.tar.gz"