blob: 25f3cd36b6eec567a7a145bcc2822cb98dda1a70 (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=godep
pkgver=80
pkgrel=2
pkgdesc="Dependency tool for go"
url="https://github.com/tools/godep"
arch="all"
license="BSD"
makedepends="go"
options="!check"
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"
default_prepare
}
build() {
cd "$builddir"
GOPATH="$srcdir" go build
}
check() {
cd "$builddir"
export EMAIL="Test User <user@example.com>"
GOPATH="$srcdir" go test
}
package() {
install -D -m 755 "$builddir"/$pkgname "$pkgdir"/usr/bin/godep
}
sha512sums="27e4e3bf746dbfb71aa05e53c5cb2e7eb5ef714d5687739b7a429d699545dc760e4ee90d601091a45239ca3a9827b10957459fb5e647c2b8f3c59fcf6515753b godep-80.tar.gz"
|