mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-02 02:52:46 +02:00
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer:
|
|
pkgname=go-uuid
|
|
_realname=go.uuid
|
|
pkgver=1.1.0
|
|
pkgrel=0
|
|
pkgdesc=" UUID package for Go"
|
|
url="https://github.com/satori/$_realname"
|
|
arch="noarch"
|
|
license="Custom"
|
|
depends=
|
|
depends_dev=
|
|
makedepends="$depends_dev"
|
|
install=
|
|
subpackages="$pkgname-doc"
|
|
_vendor="satori"
|
|
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/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="d0cd15432cf30fae3d6594f3f0839171 go-uuid-1.1.0.tar.gz"
|
|
sha256sums="a9509d7769794df7d26964d5dc297c8ad7349f8ff5585f294e8fddd1c6abe946 go-uuid-1.1.0.tar.gz"
|
|
sha512sums="2da3454ddd147d9e18c7405cdd95271c6d56aaac3085e0e9bc50106d224a28e3bd693bf1eb7e6109a0839a738cd068dddf3caa749e1bdf027627a65f3b747e1d go-uuid-1.1.0.tar.gz"
|