diff options
author | Simon Walker | 2019-06-28 17:20:08 +0100 |
---|---|---|
committer | Simon Walker | 2019-06-28 17:24:44 +0100 |
commit | 95a406b6b2243a84e6211b41bcb309f600cfaa14 (patch) | |
tree | e3981a5a2d5265b8150ea40b765f9d7964e60214 /PKGBUILD | |
download | aur-terraform-provider-libvirt-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..80341e7235f7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Simon Walker <s.r.walker101@googlemail.com> +pkgname=terraform-provider-libvirt-git +pkgver=r841.753afd8a074e +pkgrel=1 +epoch= +pkgdesc="Provision libvirt machines with terraform" +arch=("x86_64") +url="https://github.com/dmacvicar/terraform-provider-libvirt" +license=("Apache") +groups=() +depends=("libvirt") +makedepends=("go-pie") +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("git+${url}") +noextract=() +md5sums=() +validpgpkeys=() +sha256sums=('SKIP') + +pkgver() { + cd terraform-provider-libvirt + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd terraform-provider-libvirt + + go build \ + -gcflags "all=-trimpath=${PWD}" \ + -asmflags "all=-trimpath=${PWD}" \ + -ldflags "-extldflags ${LDFLAGS}" + } + +package() { + ( + cd "terraform-provider-libvirt" + install -Dm755 ./terraform-provider-libvirt "${pkgdir}/usr/bin/terraform-provider-libvirt" + ) +} |