From 23f7e5053de7ab83aa127126882872ebb3ab9fc3 Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Fri, 14 Oct 2022 02:57:32 +0300 Subject: [PATCH] break something --- yay/.SRCINFO | 23 +++++++++++++++++++++++ yay/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 yay/.SRCINFO create mode 100644 yay/PKGBUILD diff --git a/yay/.SRCINFO b/yay/.SRCINFO new file mode 100644 index 0000000..cabea6e --- /dev/null +++ b/yay/.SRCINFO @@ -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 diff --git a/yay/PKGBUILD b/yay/PKGBUILD new file mode 100644 index 0000000..aacb29f --- /dev/null +++ b/yay/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Jguer +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 +}