aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uni/APKBUILD
blob: f023aecfa6dbc232f4953adf5c7078a90596fb64 (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
# Contributor: omni <omni@gitlab.alpinelinux.org>
# Maintainer: omni <omni@gitlab.alpinelinux.org>
pkgname=uni
pkgver=2.5.1
pkgrel=0
pkgdesc="Query the Unicode database from the commandline"
url="https://github.com/arp242/uni"
license="MIT"
arch="all"
makedepends="go"
options="!check" # no test files
source="$pkgname-$pkgver.tar.gz::https://github.com/arp242/uni/archive/v$pkgver.tar.gz"

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

build() {
	go build -v .
}

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

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

sha512sums="
89857a64e85904c32e0381f3db87dff93e5d2a89930fbf0de05bea32c4ce47e2756be7881cd09a4799f52e860df9ae8bdf993805ecf26954e58e8c146d30b24e  uni-2.5.1.tar.gz
"