pkg: add yay

This commit is contained in:
blek 2023-09-14 08:24:12 +10:00
parent 9ea951ce8e
commit 50188259ab
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 61 additions and 0 deletions

24
packages/yay/.SRCINFO Normal file
View File

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

37
packages/yay/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
# Maintainer: blek! <me@blek.codes>
pkgname=yay
pkgver=12.1.2
pkgrel=1
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64' 'riscv64')
url="https://github.com/Jguer/yay"
options=(!lto)
license=('GPL3')
depends=(
'pacman>5'
'git'
)
optdepends=(
'sudo: privilege elevation'
'doas: privilege elevation'
)
makedepends=('go>=1.19')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
sha256sums=('2bd07d36b3781261c54b0ad8c085682612ba30c4392a1154b215e52456d4ca73')
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
}