summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e591fa97afbef93be6d077325ddb1e8d3afcdc85 (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
# Maintainer: Manish Khadka <manish.khadka@ttutanota.com>

pkgname=tfk8s-bin
pkgorg=tfk8s
pkgver=0.1.10
pkgrel=1
pkgdesc="If you want to copy examples from the Kubernetes documentation or migrate existing YAML manifests and use them with Terraform without having to convert YAML to HCL by hand, this tool is for you."
arch=('any')
_vendor="github.com/jrhouston/${pkgorg}"
url="https://${_vendor}"
license=('MIT')
depends=('glibc')
makedepends=('go')
source=("$pkgname-$pkgver-source.tar.gz::https://${_vendor}/archive/v${pkgver}.tar.gz")
sha256sums=('be2680e76311ac7dd814a1bb0dceb486e3511d8d68845421338f9fcf5a92d5f9')
_vendorpath="gopath/src/$_vendor"

build() {
  cd $srcdir/tfk8s-${pkgver}
  go build -o tfk8s
}

package() {
  install -Dm755 $srcdir/tfk8s-${pkgver}/tfk8s $pkgdir/usr/bin/tfk8s
}