summaryrefslogtreecommitdiff
path: root/pcr/godep/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/godep/PKGBUILD')
-rw-r--r--pcr/godep/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/pcr/godep/PKGBUILD b/pcr/godep/PKGBUILD
new file mode 100644
index 000000000..eca1aa9f8
--- /dev/null
+++ b/pcr/godep/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Sauyon Lee <sauyon@patchouli>
+
+pkgname=godep
+pkgver=r94.983ff92
+pkgrel=1
+pkgdesc="Dependency tool for go"
+arch=('i686' 'x86_64')
+url="http://github.com/tools/godep"
+license=('BSD')
+makedepends=('git' 'go' 'mercurial')
+source=("$pkgname::git+https://github.com/tools/godep")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+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"
+}