blob: 49d0be46f09c1d933f13bae1afe0b481e66dc368 (
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
|
# Maintainer: Alwyn Kik <alwyn at kik dot pw>
pkgname=terraform-provider-gandi
pkgver=2.0.0
pkgrel=1
pkgdesc="Terraform provider for Gandi LiveDNS"
url="https://github.com/tiramiseb/terraform-provider-gandi"
license=("MPL")
arch=("x86_64")
makedepends=("go" "git")
_gourl="github.com/terraform-providers"
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('2db68a5f917b1159991f89246231fcce6f0ec8b2a27f29702c29f110d43d2322')
build() {
cd "$srcdir/$pkgname-$pkgver"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
go build -o terraform-provider-gandi
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
}
|