aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoromni <omni+alpine@hack.org>2022-05-30 21:17:01 +0000
committeralice <alice@ayaya.dev>2022-05-30 23:06:50 +0000
commit5f2be2b1970af1cc5d258b836f522a79354acf5c (patch)
treedcc82b915803a5f4363cd9b8b77fcfde7d5c1e36
parent1354e161829b64b7cabbe12bf2ddc9c3087f1635 (diff)
downloadaports-5f2be2b1970af1cc5d258b836f522a79354acf5c.tar.gz
aports-5f2be2b1970af1cc5d258b836f522a79354acf5c.tar.bz2
aports-5f2be2b1970af1cc5d258b836f522a79354acf5c.tar.xz
testing/uni: new aport
-rw-r--r--testing/uni/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/uni/APKBUILD b/testing/uni/APKBUILD
new file mode 100644
index 0000000000..f023aecfa6
--- /dev/null
+++ b/testing/uni/APKBUILD
@@ -0,0 +1,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
+"