diff options
author | Thomas Boerger <thomas@webhippie.de> | 2016-07-05 15:50:53 +0000 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-06 14:29:02 +0200 |
commit | fb3688ab3e5f1b1d1c7ffa76c395344a28d754e4 (patch) | |
tree | 27a77548b9ae3c234ce920dec9623892ee472849 /testing/cloudfoundry-cli | |
parent | c1a4db75a8d391bc8d671bd9a6b3cf8efd511bcb (diff) | |
download | aports-fb3688ab3e5f1b1d1c7ffa76c395344a28d754e4.tar.bz2 aports-fb3688ab3e5f1b1d1c7ffa76c395344a28d754e4.tar.xz |
testing/cloudfoundry-cli: Cleanup suggested by barthalion
Diffstat (limited to 'testing/cloudfoundry-cli')
-rw-r--r-- | testing/cloudfoundry-cli/APKBUILD | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/testing/cloudfoundry-cli/APKBUILD b/testing/cloudfoundry-cli/APKBUILD index b8733042bf..aba93faff9 100644 --- a/testing/cloudfoundry-cli/APKBUILD +++ b/testing/cloudfoundry-cli/APKBUILD @@ -14,26 +14,16 @@ install="" subpackages="" source="${pkgname}-${pkgver}.tar.gz::https://github.com/cloudfoundry/cli/archive/v$pkgver.tar.gz" -_builddir="${srcdir}/cli-${pkgver}" +builddir="${srcdir}/cli-${pkgver}" _godir="${srcdir}/go" _gourl="github.com/cloudfoundry/cli" -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - build() { mkdir -p ${_godir}/bin ${_godir}/src/github.com/cloudfoundry - ln -sf ${_builddir} ${_godir}/src/github.com/cloudfoundry/cli + ln -sf ${builddir} ${_godir}/src/github.com/cloudfoundry/cli export GOPATH="${_godir}" - go install ${_gourl}/main + go install ${_gourl}/main || return 1 } package() { |