pkgbuilds/yay/PKGBUILD

44 lines
1.4 KiB
Text
Raw Permalink Normal View History

2019-09-05 18:16:37 +08:00
# Maintainer: Jguer <joaogg3@gmail.com>
pkgname=yay
2022-02-06 18:17:39 +08:00
pkgver=11.1.1
2021-10-10 05:39:31 +08:00
pkgrel=1
2019-09-05 18:16:37 +08:00
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
2020-08-19 01:50:45 +08:00
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
2019-09-05 18:16:37 +08:00
url="https://github.com/Jguer/yay"
2021-08-21 21:56:28 +08:00
options=(!lto)
2021-03-18 03:18:41 +08:00
license=('GPL3')
2019-09-05 18:16:37 +08:00
depends=(
2020-12-15 03:30:12 +08:00
'pacman>5'
2019-09-05 18:16:37 +08:00
'git'
)
2021-02-16 13:16:44 +08:00
optdepends=(
2022-01-03 05:25:31 +08:00
'sudo: privilege elevation'
'doas: privilege elevation'
2019-09-05 18:16:37 +08:00
)
2022-01-03 05:25:31 +08:00
makedepends=('go>=1.17')
options=(!lto)
2019-09-05 18:16:37 +08:00
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
2022-02-06 18:17:39 +08:00
sha256sums=('31ed6d828574601e77b8df90c6e734a230ea60531b704934038d52fe213c0898')
2021-06-02 16:31:54 +08:00
# 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
2019-09-05 18:16:37 +08:00
build() {
2020-03-01 07:47:39 +08:00
export GOPATH="$srcdir"/gopath
2020-06-19 00:38:36 +08:00
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
2020-10-19 02:58:22 +08:00
export CGO_ENABLED=1
2020-06-19 00:38:36 +08:00
2019-09-05 18:16:37 +08:00
cd "$srcdir/$pkgname-$pkgver"
2021-06-02 16:31:54 +08:00
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" build
2019-09-05 18:16:37 +08:00
}
package() {
cd "$srcdir/$pkgname-$pkgver"
2020-06-14 06:51:47 +08:00
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" install
2019-09-05 18:16:37 +08:00
}