blob: 93b38d39a8a1b123257c88d39eb3d1ba2d4807dc (
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=r93.bbdfa05
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"
}
|