summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPiotr Rogoża2015-06-14 15:57:00 +0200
committerPiotr Rogoża2015-06-14 15:57:00 +0200
commit2a3314caa93a7d43210323c3b935efecc640ed23 (patch)
treec4ecfec99566709c5acd2548a4c07f3779e30e2b /PKGBUILD
downloadaur-go-goopt.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..62e6a0e3efa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab
+# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com>
+# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
+
+pkgname=go-goopt
+pkgver=1
+pkgrel=1
+pkgdesc='A getopt-like processor of command-line flags.'
+arch=(i686 x86_64)
+url='https://github.com/droundy/goopt'
+license=('GPL')
+depends=(bash)
+makedepends=(git go)
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+noextract=()
+_gourl='github.com/droundy/goopt'
+
+build(){
+ cd "$srcdir"
+ GOPATH="$srcdir" go get -v -x ${_gourl}/...
+}
+check() {
+ cd "$srcdir"
+ GOPATH="$srcdir" go test -v -x ${_gourl}/...
+}
+package(){
+ cd "$srcdir"
+ source /etc/profile.d/go.sh
+ mkdir -p "$pkgdir"/$GOPATH
+ cp -R --preserve=timestamps ${srcdir}/{src,pkg} "${pkgdir}/$GOPATH"
+}