summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d241979b33a3abe62db92ee84d2764d20196e1fb (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
28
29
30
# Maintainer: Luan Santos <aur@luan.sh>

pkgname=bosh-cli
pkgver=5.5.0
pkgrel=1
pkgdesc="BOSH command line interface tool"
arch=('i686' 'x86_64')
url="https://bosh.io/"
license=('Apache2')
depends=()
makedepends=('go')
optdepends=('openssh: bosh ssh')
source=("https://github.com/cloudfoundry/bosh-cli/archive/v${pkgver}.tar.gz")
sha256sums=('901085088f17b5224af7d1aec9db942859344fea54801de3f49a2168d449592f')

build() {
  mkdir -p gopath/src/github.com/cloudfoundry
  mv $pkgname-$pkgver gopath/src/github.com/cloudfoundry/bosh-cli
  cd gopath/src/github.com/cloudfoundry/bosh-cli
  GOPATH=$srcdir/gopath bin/build
  mv out/bosh $srcdir/bosh
  rm -rf $srcdir/gopath
}

package() {
  mkdir -p "$pkgdir/usr/bin"
  cp "$srcdir/bosh" "$pkgdir/usr/bin"
}

# vim:set ts=2 sw=2 et: