File PKGBUILD of Package yay-git
# Maintainer: Jguer <joaogg3@gmail.com>
pkgname=yay-git
pkgver=%{version}
_yay_tar=$pkgname-dev-$pkgver
pkgrel=1
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/Jguer/yay"
license=('GPL')
depends=(
'pacman>=5.2'
'sudo'
'git'
)
conflicts=('yay')
makedepends=(
'go'
)
source=("${_yay_tar}.tar.xz")
sha1sums=(SKIP)
build() {
cd "$srcdir/$_yay_tar"
EXTRA_GOFLAGS="-gcflags all=-trimpath=${PWD} -asmflags all=-trimpath=${PWD}" \
LDFLAGS="-linkmode external -extldflags \"${LDFLAGS}\"" \
make VERSION=$pkgver DESTDIR="$pkgdir" build
}
package() {
cd "$srcdir/$_yay_tar"
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX=/usr install
}