summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD27
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..92105fbf0a5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = go-check
+ pkgdesc = Rich testing framework
+ pkgver = 1
+ pkgrel = 2
+ url = http://launchpad.net/gocheck
+ arch = x86_64
+ arch = i686
+ license = BSD
+ makedepends = go
+ makedepends = bzr
+ options = !strip
+ options = !emptydirs
+
+pkgname = go-check
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..600fd0ac689
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+pkgname=go-check
+pkgver=1
+pkgrel=2
+pkgdesc="Rich testing framework"
+arch=('x86_64' 'i686')
+url="http://launchpad.net/gocheck"
+license=('BSD')
+makedepends=('go' 'bzr')
+options=('!strip' '!emptydirs')
+_gourl=launchpad.net/gocheck
+
+build() {
+ cd "$srcdir"
+ GOPATH="$srcdir" go get -v -x ${_gourl}/...
+}
+
+check() {
+ GOPATH="$srcdir" go test -v -x ${_gourl}/...
+}
+
+package() {
+ source /etc/profile.d/go.sh
+ mkdir -p "${pkgdir}/$GOPATH"
+ cp -Rv --preserve=timestamps ${srcdir}/{src,pkg} "${pkgdir}/$GOPATH"
+}
+
+# vim:set ts=2 sw=2 et: