blob: c3d042b88776e60e667006bd3cc242cec53d791a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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"
|