summaryrefslogtreecommitdiff
path: root/testing/btcd/APKBUILD
blob: 6a1cf863bdb849fbec57786f7884785ad9fbe81c (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
31
32
33
# Maintainer: Michał Adamski <michal@ert.pl>
pkgname=btcd
pkgver=0.22.0_beta
_pkgver=${pkgver/_/-}
pkgrel=2
pkgdesc="Alternative full node bitcoin implementation written in Go"
url="https://github.com/btcsuite/btcd#btcd"
arch="all"
license="ISC"
makedepends="go"
source="https://github.com/btcsuite/btcd/archive/v$_pkgver/btcd-$_pkgver.tar.gz
	fix-test.patch
	"
builddir="$srcdir/$pkgname-$_pkgver"

build() {
	mkdir bin
	go build -trimpath -ldflags="-s -w" -v -o bin . ./cmd/...
}

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

package() {
	for bin in bin/*; do
		install -Dm755 $bin "$pkgdir"/usr/$bin
	done
}
sha512sums="
cae1bf46900890e4bc01b817f72cbf6654636af5bac887032a85afba91a813162e5b2e1bcb23cd0a013e8b0711d9e7a68d6ff08f8767c6b375a2df7d8d72c291  btcd-0.22.0-beta.tar.gz
ba6a8a79ca5c4419c4983042f9c49548ff3548b1002705ae106c2123424bc492a477e9693334fb5264ebe38f01cac6a9b36c8fe392cec0f4257ac5e78534578e  fix-test.patch
"