diff options
author | Pascal Potvin | 2018-02-07 17:59:43 -0500 |
---|---|---|
committer | Pascal Potvin | 2018-02-07 17:59:43 -0500 |
commit | 6f33f8d7acb18d490f9ff8b6759ba426e804a0b4 (patch) | |
tree | f8ff3c1cd71b298036ac1c35f7d5031113d90165 /PKGBUILD | |
download | aur-6f33f8d7acb18d490f9ff8b6759ba426e804a0b4.tar.gz |
PKGBUILD: first import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8bd7c84e8477 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Pascal Potvin <pascal dot potvin at gmail dot com> + +pkgname=terraform-provider-libvirt +pkgver=0.3 +pkgrel=1 +pkgdesc="Terraform provider for libvirt" +url="https://github.com/dmacvicar/terraform-provider-libvirt" +arch=("i686" "x86_64") +license=("apache") +makedepends=("go" "git") +_namespace="github.com/dmacvicar/" +depends=("terraform" "libvirt") +source=("https://github.com/dmacvicar/terraform-provider-libvirt/archive/v$pkgver.tar.gz") +sha256sums=('968682b29ea8f9bac3a4316c3034648e2a363d95df648a55c905e96623b758d1') + + +prepare() { + GOPATH="$(pwd)/go" + mkdir -p "$GOPATH/src/$_namespace" + rm -rf "$GOPATH/src/$_namespace/$pkgname" + mv -f "$pkgname-$pkgver" "$GOPATH/src/$_namespace/$pkgname" +} + +build() { + export GOPATH="$(pwd)/go" + GOBIN="$GOPATH/bin" + cd "$GOPATH/src/$_namespace/$pkgname" + PATH="$GOBIN:$PATH" go get -v +} + + +package() { + GOPATH="$(pwd)/go" + GOBIN="$GOPATH/bin" + install -Dm755 "$GOBIN/$pkgname" "$pkgdir/usr/bin/$pkgname" +} |