mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-21 21:40:41 +08:00
43 lines
1.4 KiB
Bash
43 lines
1.4 KiB
Bash
# Maintainer: Jguer <joaogg3@gmail.com>
|
|
pkgname=yay
|
|
pkgver=11.1.1
|
|
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"
|
|
options=(!lto)
|
|
license=('GPL3')
|
|
depends=(
|
|
'pacman>5'
|
|
'git'
|
|
)
|
|
optdepends=(
|
|
'sudo: privilege elevation'
|
|
'doas: privilege elevation'
|
|
)
|
|
makedepends=('go>=1.17')
|
|
options=(!lto)
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('31ed6d828574601e77b8df90c6e734a230ea60531b704934038d52fe213c0898')
|
|
|
|
# With pacman 6 arriving a rebuild of yay will be necessary, if you upgrade pacman without upgrading yay at the same time, yay will not run after.
|
|
# I'm bumping the pkgrel so it shows up on the upgrade list (and will do so when pacman transitions from staging->core)
|
|
# In case you end up with a non-functioning yay after the upgrade follow the
|
|
# instructions on the github page
|
|
|
|
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
|
|
}
|