summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7d29f42162a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
+
+pkgname=go-uuid
+pkgver=100.f9ab0dc
+pkgrel=1
+pkgdesc="A pure Go implementation of Universally Unique Identifier (UUID)"
+arch=('x86_64' 'i686')
+url="https://godoc.org/github.com/satori/go.uuid"
+license=('MIT')
+depends=('go')
+makedepends=('rsync')
+options=('!strip' '!emptydirs')
+_gourl='github.com/satori/go.uuid'
+
+build() {
+ GOPATH="${srcdir}" go get -v -x ${_gourl}
+}
+
+package() {
+ cd "${srcdir}"
+
+ mkdir -p "${pkgdir}/usr/lib/go"
+ rsync -avz --exclude .git {src,pkg} "${pkgdir}/usr/lib/go"
+
+ install -Dm644 "src/${_gourl}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}