aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dep/APKBUILD
blob: 5ac1f3ceb4313f397c5598fc866b1849d3f716f4 (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 <edward-robinson@cookpad.com>
# Maintainer: Ed Robinson <edward-robinson@cookpad.com>
pkgname=dep
pkgver=0.3.2
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="3fae14328904bda9de06edd2a2614711c4f44d6a70b21210ca7bd00059c66810697a18892e7932274916befb2468d8756be97648e0912c72700b4100c3e16f7b  dep-0.3.2.tar.gz"