fix: place GOPATH in srcdir

This commit is contained in:
Jguer 2020-03-01 00:22:40 +01:00
parent 52631d6c47
commit 198f0cf87c
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
pkgbase = yay
pkgdesc = Yet another yogurt. Pacman wrapper and AUR helper written in go.
pkgver = 9.4.6
pkgrel = 1
pkgrel = 2
url = https://github.com/Jguer/yay
arch = i686
arch = x86_64

View File

@ -1,7 +1,7 @@
# Maintainer: Jguer <joaogg3@gmail.com>
pkgname=yay
pkgver=9.4.6
pkgrel=1
pkgrel=2
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/Jguer/yay"
@ -18,6 +18,7 @@ source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pk
sha1sums=('a3b2dd86fda1cc5998899cd69df2102e57ab8fbc')
build() {
export GOPATH="$srcdir"/gopath
cd "$srcdir/$pkgname-$pkgver"
EXTRA_GOFLAGS="-gcflags all=-trimpath=${PWD} -asmflags all=-trimpath=${PWD}" \
LDFLAGS="-linkmode external -extldflags \"${LDFLAGS}\"" \