break something

This commit is contained in:
Evgenii Alekseev 2022-10-14 02:57:32 +03:00
commit 23f7e5053d
2 changed files with 65 additions and 0 deletions

23
yay/.SRCINFO Normal file
View File

@ -0,0 +1,23 @@
pkgbase = yay
pkgdesc = Yet another yogurt. Pacman wrapper and AUR helper written in go.
pkgver = 11.3.0
pkgrel = 1
url = https://github.com/Jguer/yay
arch = i686
arch = pentium4
arch = x86_64
arch = arm
arch = armv7h
arch = armv6h
arch = aarch64
license = GPL3
makedepends = go>=1.17
depends = pacman>5
depends = git
optdepends = sudo: privilege elevation
optdepends = doas: privilege elevation
options = !lto
source = yay-11.3.0.tar.gz::https://github.com/Jguer/yay/archive/v11.3.0.tar.gz
sha256sums = bf5891dd00ffa85a445e9499f17431260e415a4b4e861e0b7c1f345af2bae384
pkgname = yay

42
yay/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
# Maintainer: Jguer <pkgbuilds at jguer.space>
pkgname=yay
pkgver=11.4.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"
options=(!lto)
license=('GPL3')
depends=(
'pacman>5'
'git'
)
optdepends=(
'sudo: privilege elevation'
'doas: privilege elevation'
)
makedepends=('go>=1.17')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
sha256sums=('bf5891dd00ffa85a445e9499f17431260e415a4b4e861e0b7c1f345af2bae384')
# 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
}