blob: 2ec9e00cfe279cb82a65448a97af49364c82fead (
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
|
# Contributor: Ed Robinson <edward-robinson@cookpad.com>
# Maintainer: Ed Robinson <edward-robinson@cookpad.com>
pkgname=dep
pkgver=0.5.0
pkgrel=0
pkgdesc="Go dependency management tool"
url="https://github.com/golang/dep"
arch="all"
license="BSD-3-Clause"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/golang/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
builddir="$srcdir/src/github.com/golang/$pkgname"
prepare() {
mkdir -p ${builddir%/*}
mv "$srcdir"/$pkgname-$pkgver "$builddir"/
default_prepare
}
build() {
export GOPATH="$srcdir"
cd "$builddir"
go build -ldflags="-X main.version=$pkgver" -o ./bin/dep ./cmd/dep
}
package() {
cd "$builddir"
install -Dm755 ./bin/dep "$pkgdir"/usr/bin/dep
}
check() {
cd "$builddir"
./bin/dep status > /dev/null
}
sha512sums="c33ad06ed647b33753e45e7097e979d0999b8a44e2087cbf3b3bb9d1c71b3f606b349d5fadfcc1dd461d8ca7f8f4ac995338264536afdab5eb2a63d27432b0f6 dep-0.5.0.tar.gz"
|