diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 14:54:57 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 15:22:00 +0000 |
commit | 28f6c599a6f3f13fc45eeb6ae2d72e60cec1c5dc (patch) | |
tree | 5b3eec111361988f3fa8b87865864450cb2a467c /testing/go-nuid | |
parent | 5bfeaa0b35eda200b631db9817edbd9f7b64a7e6 (diff) | |
download | aports-28f6c599a6f3f13fc45eeb6ae2d72e60cec1c5dc.tar.bz2 aports-28f6c599a6f3f13fc45eeb6ae2d72e60cec1c5dc.tar.xz |
testing/go-nuid: new aport
NATS Unique Identifiers
Diffstat (limited to 'testing/go-nuid')
-rw-r--r-- | testing/go-nuid/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/go-nuid/APKBUILD b/testing/go-nuid/APKBUILD new file mode 100644 index 0000000000..c3d042b887 --- /dev/null +++ b/testing/go-nuid/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=go-nuid +_realname=nuid +_vendor="nats-io" +pkgver=1.0.0 +pkgrel=0 +pkgdesc=" NATS Unique Identifiers" +url="https://github.com/$_vendor/$_realname" +arch="noarch" +license="MIT" +depends= +depends_dev= +makedepends="$depends_dev" +install= +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_realname/archive/v$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/vendor/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/vendor/github.com/$_vendor/$_realname || return 1 +} + +md5sums="2bf11b24994456b4872ef2234b2fbc1c go-nuid-1.0.0.tar.gz" +sha256sums="2fa05dbe733e1a0168668b8e723831ff9de3edc33ba5cd9ee965ede9f0535610 go-nuid-1.0.0.tar.gz" +sha512sums="b4a02aae9b29ee00bc482d7eda6ff9fdb1e64419e0d728ce4c1180027e6e4846444ace2376abf7a0f597c5e08a27594708d48257348555b1c611d6a588e2a734 go-nuid-1.0.0.tar.gz" |