diff options
author | 0x9fff00 | 2019-10-13 14:48:57 +0200 |
---|---|---|
committer | 0x9fff00 | 2019-10-13 14:48:57 +0200 |
commit | e79b3a8318e9c593d7c18e1c537b07c60980f1b1 (patch) | |
tree | 34376e581edf6aa48636633087de09b69d3cba2f | |
download | aur-e79b3a8318e9c593d7c18e1c537b07c60980f1b1.tar.gz |
1.4.1-1
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..59e55420304c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = golang-github-gorilla-websocket + pkgdesc = A fast, well-tested and widely used WebSocket implementation for Go + pkgver = 1.4.1 + pkgrel = 1 + url = https://github.com/gorilla/websocket + arch = any + license = BSD + depends = go + source = golang-github-gorilla-websocket-1.4.1.tar.gz::https://github.com/gorilla/websocket/archive/v1.4.1.tar.gz + sha256sums = 9e5bd337d58a978bf4072767252ddb394b53e2b459697633794abd96e8eb3fa6 + +pkgname = golang-github-gorilla-websocket + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4525f0732ff5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: 0x9fff00 <0x9fff00+git@protonmail.ch> + +pkgname=golang-github-gorilla-websocket +pkgver=1.4.1 +pkgrel=1 +pkgdesc='A fast, well-tested and widely used WebSocket implementation for Go' +arch=('any') +url="https://github.com/gorilla/websocket" +license=('BSD') +depends=('go') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('9e5bd337d58a978bf4072767252ddb394b53e2b459697633794abd96e8eb3fa6') + +check() { + export GOPATH="$srcdir/gopath:/usr/share/gocode" + mkdir -p gopath/src/github.com/gorilla + cp -a websocket-$pkgver gopath/src/github.com/gorilla/websocket + cd gopath/src/github.com/gorilla/websocket + go test -v $(go list ./...) +} + +package() { + mkdir -p "$pkgdir/usr/share/gocode/src/github.com/gorilla" + cp -a websocket-$pkgver "$pkgdir/usr/share/gocode/src/github.com/gorilla/websocket" + + install -Dm644 websocket-$pkgver/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |