summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ea8ed915287
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
+
+pkgname=go-gojsonschema
+pkgver=349.3988ac1
+pkgrel=1
+pkgdesc="Go implementation of JSON Schema, based on IETF's draft v4"
+arch=('x86_64' 'i686')
+url="https://github.com/xeipuuv/gojsonschema"
+license=('Apache')
+depends=('go')
+makedepends=('rsync')
+options=('!strip' '!emptydirs')
+_gourl='github.com/xeipuuv/gojsonschema'
+
+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"
+}