aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dep/APKBUILD
blob: c8c55fa51a9fe21f7aa572d2daf52688e494e273 (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.0
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="377869d69838a826499b9bc063eacc4b9db0d130d785901ae7fcbf28645276ba6bead33d251837646ded5f0a078e56b4a378c5227054b738cd6d581224977dc2  dep-0.3.0.tar.gz"