aboutsummaryrefslogtreecommitdiffstats
path: root/community/govendor/APKBUILD
blob: fb767583062845cbcc115b300802265e8069a7f8 (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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=govendor
pkgver=1.0.9
pkgrel=4
pkgdesc="Go vendor tool that works with the standard vendor file"
url="https://github.com/kardianos/govendor"
arch="all !mips !mips64"
license="BSD-3-Clause"
depends=""
makedepends="go"
install=""
subpackages=""
source="govendor-$pkgver.tar.gz::https://github.com/kardianos/govendor/archive/v$pkgver.tar.gz"
builddir="$srcdir/github.com/kardianos/$pkgname"


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

build() {
	cd "$builddir"
	export GOPATH="$startdir"
	go build -v
}

package() {
	install -Dm755 "$builddir"/govendor "$pkgdir"/usr/bin/govendor
}

sha512sums="3ea102e4f0fb8d6619dae3ba7a8022c81fc5711fad8e874c1cb1bfc0c830fa50a057035fb28a060c3b0fb2dd10b65881bf91e5260c48827819610bf483d9884e  govendor-1.0.9.tar.gz"