summaryrefslogtreecommitdiff
path: root/community/godep/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/godep/PKGBUILD')
-rw-r--r--community/godep/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/godep/PKGBUILD b/community/godep/PKGBUILD
new file mode 100644
index 000000000..6c83652a7
--- /dev/null
+++ b/community/godep/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id:
+# Maintainer : Martin Wimpress <code@flexion.org>
+# Contributor: Sauyon Lee <arch@sauyon.com>
+
+pkgname=godep
+pkgver=94.20140524
+pkgrel=1
+epoch=1
+pkgdesc="Dependency tool for go"
+arch=('i686' 'x86_64')
+url="http://github.com/tools/godep"
+license=('BSD')
+depends=('glibc')
+makedepends=('git' 'go' 'mercurial')
+source=("${pkgname}::git+https://github.com/tools/godep#commit=983ff9241cead0f7e6ad0ae4a92b335c33ade8a2")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ printf "%s.%s" "$(git rev-list --count HEAD)" "$(git log -1 --format=%cd --date=short | tr -d -)"
+}
+
+prepare() {
+ export GOPATH="${srcdir}"
+ go get code.google.com/p/go.tools/go/vcs
+ go get github.com/kr/fs
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ GOPATH="${srcdir}" go build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/godep"
+ install -Dm644 License "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}