Commit 2d3b16b0 authored by Leonardo Arena's avatar Leonardo Arena

testing/go-websocket: new aport

A WebSocket implementation for Go
parent 44247556
# 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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment