summaryrefslogtreecommitdiff
path: root/pcr/godep
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-06-05 13:40:02 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-06-05 13:40:02 -0300
commit8ef2470e15ed1a7ee4b7b9fa56f9d3503e271aad (patch)
treef9e4298044e164b84c0c7246961468e3c7fad75e /pcr/godep
parent1c5020a76492707a59fe684bc5294e6a34124e5a (diff)
syncthing: it goes on pcr
Diffstat (limited to 'pcr/godep')
-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"
+}