diff options
author | Daniel Biehl | 2019-12-05 14:01:13 +0100 |
---|---|---|
committer | Daniel Biehl | 2019-12-05 14:01:13 +0100 |
commit | 9043102925e0a24c791516eeb695ade75936078a (patch) | |
tree | cf71148f75e9a81c0e603313c24316a6373c1407 | |
parent | 2f611188ff3a8488c4dd904d9f7d0305eeb1ff66 (diff) | |
download | aur-9043102925e0a24c791516eeb695ade75936078a.tar.gz |
correct build process
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 10 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = getgauge pkgdesc = Light weight cross-platform test automation tool for authoring test cases in the business language. pkgver = 1.0.6 - pkgrel = 2 + pkgrel = 3 url = https://getgauge.io arch = x86_64 arch = i686 @@ -2,7 +2,7 @@ pkgname=getgauge pkgver=1.0.6 -pkgrel=2 +pkgrel=3 pkgdesc="Light weight cross-platform test automation tool for authoring test cases in the business language." arch=('x86_64' 'i686') url="https://getgauge.io" @@ -12,24 +12,24 @@ makedepends=('go') source=("https://github.com/getgauge/gauge/archive/v$pkgver.tar.gz") sha256sums=('89b47749ef134e57295849e89a10fadf577e05aeb690e9db013c39e9c59b1f5d') -_gauge_path="github.com/getgauge/gauge" +_gauge_path="src/github.com/getgauge/gauge" prepare() { - cd "$srcdir" - mkdir -p "github.com/getgauge/" - mv "gauge-$pkgver" "github.com/getgauge/gauge" + cd "${srcdir}" + mkdir -p "$(dirname ${_gauge_path})" + mv "gauge-$pkgver" "${_gauge_path}" } build() { - export GOPATH="${startdir}" + export GOPATH="${srcdir}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-trimpath" - + cd "${srcdir}/${_gauge_path}/" - go run build/make.go + go run build/make.go } package() { cd "${srcdir}/${_gauge_path}" - go run build/make.go --install --prefix="${pkgdir}/usr" + go run build/make.go --install --prefix="${pkgdir}/usr" } |