summaryrefslogtreecommitdiff
path: root/testing/wormhole-william/APKBUILD
blob: 8350391aea153cc6a7b84a28da2b18fa2aebf6cf (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
# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=wormhole-william
pkgver=1.0.6
pkgrel=5
pkgdesc="Go implementation of Magic Wormhole"
arch="all"
url="https://github.com/psanford/wormhole-william"
license="MIT"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/psanford/wormhole-william/archive/v$pkgver.tar.gz"

export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build -v .
}

check() {
	go test -v ./...
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="767ac269931391ce6e50cf97b1035e7d5ce00004764e2bd30c14ee8d8f95f75eff094b759ca4da972f4f9fa4f708064ef09a6d8a4b3d45bb9494a7fca3bb2090  wormhole-william-1.0.6.tar.gz"