# Maintainer: Arturo Penen # Contributor: David Birks # Contributor: Jacob Mason pkgname=jx pkgver=3.10.132 pkgrel=1 pkgdesc='Command line tool for working with Jenkins X' arch=('x86_64') url='https://github.com/jenkins-x/jx' license=('Apache') makedepends=('go') source=("$pkgname-$pkgver.tar.gz::https://github.com/jenkins-x/jx/archive/v$pkgver.tar.gz") sha256sums=('48d6d2ba661e2908189708d6c8dbc68674870066b8dd1e4b2bac51dd1e064e31') build() { cd $pkgname-$pkgver export VERSION=$pkgver make build } package() { install -Dm 755 "${srcdir}/$pkgname-$pkgver/build/jx" "${pkgdir}/usr/bin/jx" ## Populate bash and zsh completions #install -dm 755 "${pkgdir}/usr/share/bash-completion/completions" #install -dm 755 "${pkgdir}/usr/share/zsh/site-functions" #"${pkgdir}/usr/bin/jx" completion bash > "${pkgdir}/usr/share/bash-completion/completions/jx" #"${pkgdir}/usr/bin/jx" completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_jx" }