blob: a600bc9e214bb1b22290abd9e61986e1b2750deb (
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
38
39
40
41
42
|
# Contributor: Ed Robinson <ed@reevoo.com>
# Maintainer: Ed Robinson <ed@reevoo.com>
pkgname=dep
pkgver=0.3.1
pkgrel=0
pkgdesc="Go dependency management tool"
url="https://github.com/golang/dep"
arch="all"
license="BSD3"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/golang/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
subpackages=$pkgname-doc
prepare() {
default_prepare
export GOPATH="$(pwd)/_gopath"
_golang="${GOPATH}/src/github.com/golang"
mkdir -vp ${_golang}
ln -vsf ${builddir} ${_golang}/${pkgname}
}
build() {
go build github.com/golang/dep/cmd/dep
}
package() {
cd "$builddir"
install -Dm755 dep "$pkgdir"/usr/bin/dep
}
doc () {
cd "$builddir"
install -Dm644 LICENSE "$subpkgdir"/usr/share/licenses/$pkgname/LICENSE
}
check() {
cd "$GOPATH"/src/github.com/golang/${pkgname}
./dep status
}
sha512sums="7de9292eed906ce0f7e9e4fd42a7f8110b4ed87e6f036a5871d0faabb7f577ec47937096ed44173e1ec24341ffc76e3bc208b202b1c14b9e9330db23cd8eec28 dep-0.3.1.tar.gz"
|