summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Biehl2019-12-05 13:44:50 +0100
committerDaniel Biehl2019-12-05 13:44:50 +0100
commit2f611188ff3a8488c4dd904d9f7d0305eeb1ff66 (patch)
tree6efe4fc538d3ba8c33d69ad444215a64ebf8c282
parentdda3a36094d72a4c5d72b044f54cf9c628aa8a86 (diff)
downloadaur-2f611188ff3a8488c4dd904d9f7d0305eeb1ff66.tar.gz
update build proces
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD27
2 files changed, 14 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c48b89d1f7d..52ed4465248 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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 = 1
+ pkgrel = 2
url = https://getgauge.io
arch = x86_64
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 348246f5876..3611319c786 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=getgauge
pkgver=1.0.6
-pkgrel=1
+pkgrel=2
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,25 +12,24 @@ makedepends=('go')
source=("https://github.com/getgauge/gauge/archive/v$pkgver.tar.gz")
sha256sums=('89b47749ef134e57295849e89a10fadf577e05aeb690e9db013c39e9c59b1f5d')
-_gourl="/github.com/getgauge/gauge"
+_gauge_path="github.com/getgauge/gauge"
-prepare() {
+prepare() {
cd "$srcdir"
- mkdir -p "src/github.com/getgauge/"
- mv "gauge-$pkgver" "src/github.com/getgauge/gauge"
+ mkdir -p "github.com/getgauge/"
+ mv "gauge-$pkgver" "github.com/getgauge/gauge"
}
build() {
- export GOPATH="${srcdir}"
-
- cd "${srcdir}/src/github.com/getgauge/gauge"
-
- go run build/make.go
+ export GOPATH="${startdir}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-trimpath"
+
+ cd "${srcdir}/${_gauge_path}/"
+ go run build/make.go
}
package() {
- cd "${srcdir}/src/github.com/getgauge/gauge"
-
- go run build/make.go --install --prefix="$pkgdir/usr"
+ cd "${srcdir}/${_gauge_path}"
+ go run build/make.go --install --prefix="${pkgdir}/usr"
}
-