From 8ef2470e15ed1a7ee4b7b9fa56f9d3503e271aad Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 5 Jun 2014 13:40:02 -0300 Subject: syncthing: it goes on pcr --- pcr/godep/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pcr/godep/PKGBUILD (limited to 'pcr/godep') 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 + +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" +} -- cgit v1.2.3-54-g00ecf