Commit fb3688ab authored by Thomas Boerger's avatar Thomas Boerger Committed by Bartłomiej Piotrowski

testing/cloudfoundry-cli: Cleanup suggested by barthalion

parent c1a4db75
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment