# Contributor: omni # Maintainer: omni pkgname=uni pkgver=2.5.1 pkgrel=12 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 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 ./... } package() { install -Dm0755 "$pkgname" -t "$pkgdir"/usr/bin } sha512sums=" 89857a64e85904c32e0381f3db87dff93e5d2a89930fbf0de05bea32c4ce47e2756be7881cd09a4799f52e860df9ae8bdf993805ecf26954e58e8c146d30b24e uni-2.5.1.tar.gz "