From 5f2be2b1970af1cc5d258b836f522a79354acf5c Mon Sep 17 00:00:00 2001 From: omni Date: Mon, 30 May 2022 21:17:01 +0000 Subject: testing/uni: new aport --- testing/uni/APKBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 testing/uni/APKBUILD diff --git a/testing/uni/APKBUILD b/testing/uni/APKBUILD new file mode 100644 index 00000000000..f023aecfa6d --- /dev/null +++ b/testing/uni/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: omni +# Maintainer: omni +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 +" -- cgit v1.2.3