summaryrefslogtreecommitdiff
path: root/testing/fq/APKBUILD
blob: 882957ae05f2af46652eb09a6b135ffac1d24d02 (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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=fq
pkgver=0.8.0
pkgrel=1
pkgdesc="Tool, language and decoders for inspecting binary data"
url="https://github.com/wader/fq"
license="MIT"
arch="all !ppc64le" # fails tests
makedepends="go"
checkdepends="expect"
source="https://github.com/wader/fq/archive/v$pkgver/fq-$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	make fq
}

check() {
	GO_TEST_RACE_FLAGS= make test
}

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

sha512sums="
b9733ecb2b8ffaac564c1fb18d4fab1fe1a2b3307f42c1ac1968d5f2f74e4ca37c16add2a6e366d65e60173967e1317f6c6383d414e9ff95d0fc8f5dcefa9637  fq-0.8.0.tar.gz
"