From 773d0d0dff4926fd4a6ef7969779b30f5bca4b57 Mon Sep 17 00:00:00 2001
From: jguer <me@jguer.space>
Date: Thu, 20 May 2021 13:42:11 +0200
Subject: [PATCH] upgpkg: yay 10.2.2-2

add warning
---
 .SRCINFO | 2 +-
 PKGBUILD | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 106eda1..b315da5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = yay
 	pkgdesc = Yet another yogurt. Pacman wrapper and AUR helper written in go.
 	pkgver = 10.2.2
-	pkgrel = 1
+	pkgrel = 2
 	url = https://github.com/Jguer/yay
 	arch = i686
 	arch = pentium4
diff --git a/PKGBUILD b/PKGBUILD
index 50ec63c..95a4664 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Jguer <joaogg3@gmail.com>
 pkgname=yay
 pkgver=10.2.2
-pkgrel=1
+pkgrel=2
 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"
@@ -19,6 +19,11 @@ makedepends=(
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
 sha256sums=('0e3fc11d6a26056d02db5aae863ca7b874578a94fe5c1250272a3bca376a24e2')
 
+# 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}"