# Maintainer: Jguer pkgname=yay pkgver=10.1.0 pkgrel=1 pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go." arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') url="https://github.com/Jguer/yay" license=('GPL') depends=( 'libalpm.so>=12' 'sudo' 'git' ) makedepends=( 'go' ) source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz") sha256sums=('61266d1ed6a069f838b22dbac47f1dea32911c6062d197d8b6b3b74fef65b0ad') build() { export GOPATH="$srcdir"/gopath export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export CGO_ENABLED=1 cd "$srcdir/$pkgname-$pkgver" LDFLAGS="-extldflags \"${LDFLAGS}\"" \ make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" build } package() { cd "$srcdir/$pkgname-$pkgver" make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" install }