diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 14:56:28 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 15:22:00 +0000 |
commit | b6190b85b4b8f7fd498f563c28ba968a98168183 (patch) | |
tree | 7b55eae41bf7552a6ffaf429f09b9019b577d9f9 /testing/go-pkac | |
parent | e42557c1a763adf485ff34930e1c56e27456f699 (diff) | |
download | aports-b6190b85b4b8f7fd498f563c28ba968a98168183.tar.bz2 aports-b6190b85b4b8f7fd498f563c28ba968a98168183.tar.xz |
testing/go-pkac: new aport
SPKAC/PKAC HTML keygen element data decoding for Go
Diffstat (limited to 'testing/go-pkac')
-rw-r--r-- | testing/go-pkac/APKBUILD | 45 |
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" |