aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/go-pkac/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/go-pkac/APKBUILD b/testing/go-pkac/APKBUILD
new file mode 100644
index 0000000000..51da2ab872
--- /dev/null
+++ b/testing/go-pkac/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=go-pkac
+_realname=pkac
+_vendor="longsleep"
+pkgver=0.0.1
+pkgrel=0
+pkgdesc="SPKAC/PKAC HTML keygen element data decoding for Go"
+url="https://github.com/$_vendor/$_realname"
+arch="noarch"
+license="Custom"
+depends=
+depends_dev=
+makedepends="$depends_dev"
+install=
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_realname/archive/$pkgver.tar.gz"
+builddir="$srcdir"/$_realname-$pkgver
+
+prepare() {
+ cd "$builddir"
+}
+
+build() {
+ cd "$builddir"
+}
+
+package() {
+ cd "$builddir"
+ mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \
+ "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname
+ for file in \
+ LICENSE \
+ README.md \
+ COPYRIGHT \
+ AUTHORS \
+ ; do \
+ test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$pkgname
+ done
+ mv * "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname || return 1
+}
+
+md5sums="a8741ff729d9ca437c3993e1241a5f3a go-pkac-0.0.1.tar.gz"
+sha256sums="bf811903e873cf8837ef9e3ea1fe291627d40067035cad1f1ecc159d1f102782 go-pkac-0.0.1.tar.gz"
+sha512sums="e3b6e754f7666b08c9903225241f01f3f644942eca078f52a7989ba4b96b27ccfc620aef8c17e59c74cd234dd9b3fcf840ce0ef81a3aacfaf581153b0ecbd743 go-pkac-0.0.1.tar.gz"