38 lines
1010 B
Bash
38 lines
1010 B
Bash
|
# Maintainer: blek! <me@blek.codes>
|
||
|
pkgname=yay
|
||
|
pkgver=12.1.2
|
||
|
pkgrel=1
|
||
|
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
|
||
|
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64' 'riscv64')
|
||
|
url="https://github.com/Jguer/yay"
|
||
|
options=(!lto)
|
||
|
license=('GPL3')
|
||
|
depends=(
|
||
|
'pacman>5'
|
||
|
'git'
|
||
|
)
|
||
|
optdepends=(
|
||
|
'sudo: privilege elevation'
|
||
|
'doas: privilege elevation'
|
||
|
)
|
||
|
makedepends=('go>=1.19')
|
||
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
|
||
|
sha256sums=('2bd07d36b3781261c54b0ad8c085682612ba30c4392a1154b215e52456d4ca73')
|
||
|
|
||
|
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"
|
||
|
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" build
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir/$pkgname-$pkgver"
|
||
|
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" install
|
||
|
}
|