blob: e75777c08ef274e934d19f8285ffa482ad1d3a49 (
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
|
# $Id$
# Maintainer: Timofey Titovets <nefelim4ag@gmail.com>
pkgname=terraform-provider-vcd
pkgver=2.7.0
pkgrel=1
pkgdesc="Terraform VMware vCloud Director provider"
url="https://github.com/terraform-providers/terraform-provider-vcd"
arch=("i686" "x86_64")
license=("MPL")
makedepends=("go" "git")
_gourl="github.com/terraform-providers"
source=("https://github.com/terraform-providers/terraform-provider-vcd/archive/v$pkgver.tar.gz")
sha256sums=('4668ea0c27adda152944612d266215d3f77f519f7581b1e584de88096b6f3434')
prepare() {
mkdir -p "$srcdir/src/$_gourl"
rm -rf "${srcdir}/src/$_gourl/$pkgname"
mv -f "$pkgname-$pkgver" "$srcdir/src/$_gourl/$pkgname"
msg2 "Fetching dependencies"
cd "$srcdir/src/$_gourl/$pkgname"
}
build() {
msg2 "Build program"
cd "$srcdir/src/$_gourl/$pkgname"
GOPATH="$srcdir" PATH="$srcdir/bin:$PATH" make build
}
package() {
cd "$srcdir/bin"
install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
}
|