diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 15:20:37 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 15:22:00 +0000 |
commit | 2d3b16b0cd222689d4c7c40b48dff28d3d8c366f (patch) | |
tree | 78d451cc80e56c6f4214e919f7635b473ff97687 /testing/go-websocket | |
parent | 44247556387d5ebb63df3c8df64fc4598306b41c (diff) | |
download | aports-2d3b16b0cd222689d4c7c40b48dff28d3d8c366f.tar.bz2 aports-2d3b16b0cd222689d4c7c40b48dff28d3d8c366f.tar.xz |
testing/go-websocket: new aport
A WebSocket implementation for Go
Diffstat (limited to 'testing/go-websocket')
-rw-r--r-- | testing/go-websocket/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/go-websocket/APKBUILD b/testing/go-websocket/APKBUILD new file mode 100644 index 0000000000..7fbdc8bba0 --- /dev/null +++ b/testing/go-websocket/APKBUILD @@ -0,0 +1,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" |