aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-websocket/APKBUILD
blob: 7fbdc8bba0d9b990a37d975ecddd638888542802 (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
38
39
40
41
42
43
44
45
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=go-websocket
_realname=websocket
_vendor=gorilla
pkgver=1.1.0
pkgrel=0
pkgdesc="A WebSocket implementation for Go"
url="http://www.gorillatoolkit.org"
arch="noarch"
license="Custom"
depends=
depends_dev=
makedepends="$depends_dev"
install=
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_realname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_realname-$pkgver

prepare() {
	cd "$builddir"
}

build() {
	cd "$builddir"
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \
		"$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname
	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/github.com/$_vendor/$_realname || return 1
}

md5sums="a5a192b7f2f00845ab0b590cc6782b99  go-websocket-1.1.0.tar.gz"
sha256sums="7580ff112797d4070f2b104ea9af090b73ff951a30323e4cdffa56129d05e56b  go-websocket-1.1.0.tar.gz"
sha512sums="45d56aff3b0408c77c335d1e386509ccd37ac2ce0b8372b472a75da9a4f33f7c97b30e85dd22ea76db6d44883f7fbb467c1e4819b1803bf2295fd2c74149fce4  go-websocket-1.1.0.tar.gz"