blob: b12135c2d93dc0927493ce7eea1ed74e0c156699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Sauyon Lee <sauyon@patchouli>
pkgname=godep
pkgver=r94.983ff92
pkgrel=1
pkgdesc="Dependency tool for go"
arch=('i686' 'x86_64' 'mips64el')
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"
}
|