generated from archlinux/template
fix: place GOPATH in srcdir
This commit is contained in:
3
PKGBUILD
3
PKGBUILD
@@ -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}\"" \
|
||||
|
||||
Reference in New Issue
Block a user