aboutsummaryrefslogtreecommitdiffstats
path: root/community/godep/APKBUILD
blob: a4af8424dd189bd554874195a40ca642f472913d (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=godep
pkgver=80
pkgrel=0
pkgdesc="Dependency tool for go"
url="https://github.com/tools/godep"
arch="all"
license="BSD"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/tools/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/tools/$pkgname"

prepare() {
	mkdir -p "${builddir%/*}"
	mv "$srcdir"/$pkgname-$pkgver "$builddir" || return 1

	default_prepare
}

build() {
	cd "$builddir"
	GOPATH="$srcdir" go build
}

package() {
	install -D -m 755 "$builddir"/$pkgname "$pkgdir"/usr/bin/godep
}

sha512sums="27e4e3bf746dbfb71aa05e53c5cb2e7eb5ef714d5687739b7a429d699545dc760e4ee90d601091a45239ca3a9827b10957459fb5e647c2b8f3c59fcf6515753b  godep-80.tar.gz"