summaryrefslogtreecommitdiff
path: root/pcr/godep/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-06-06 13:36:45 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-06-06 13:36:45 -0300
commitd1e161df4f6111d527c2570958ebaf637411e3e2 (patch)
tree4231f47e1699769d42f49cccde20687be979e89a /pcr/godep/PKGBUILD
parent84b75f29126e52357bbdd40860269d9197fd68fd (diff)
parenta93d4a7da5c55af8f8669fdb63194c0680e0f748 (diff)
downloadabslibre-d1e161df4f6111d527c2570958ebaf637411e3e2.tar.gz
abslibre-d1e161df4f6111d527c2570958ebaf637411e3e2.tar.bz2
abslibre-d1e161df4f6111d527c2570958ebaf637411e3e2.zip
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
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"
+}