aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wormhole-william/APKBUILD
blob: d4b865699c0bf367a46d0b9a2e93ca51c6a9ad7e (plain) (blame)
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
# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=wormhole-william
pkgver=1.0.5
pkgrel=2
pkgdesc="Go implementation of Magic Wormhole"
arch="all !mips64" # tests fails on mips64
url="https://github.com/psanford/wormhole-william"
license="MIT"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"

export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"

build() {
	go build -ldflags="-s -w" -v .
}

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

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

sha512sums="51a49432c275e04659739bd932e1520cc18262834a49c2aa616193ca637172ce02095d5a42aa7d71517e926bbc72bb0f1ab298ceacad023caa483a6394892f93  wormhole-william-1.0.5.tar.gz"