From 34dac28e249575f6181ade5ab032772bf7998fe0 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 26 Dec 2025 23:45:13 -0500 Subject: yay: initial addition --- linhes/yay/.gitignore | 6 ++++++ linhes/yay/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 linhes/yay/.gitignore create mode 100644 linhes/yay/PKGBUILD diff --git a/linhes/yay/.gitignore b/linhes/yay/.gitignore new file mode 100644 index 0000000..6b087fc --- /dev/null +++ b/linhes/yay/.gitignore @@ -0,0 +1,6 @@ +/*.tar.xz +/*.tar.gz +/*.tar.zst +/pkg +/src +/yay diff --git a/linhes/yay/PKGBUILD b/linhes/yay/PKGBUILD new file mode 100644 index 0000000..8262007 --- /dev/null +++ b/linhes/yay/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jguer +pkgname=yay +pkgver=12.5.7 +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=('GPL-3.0-or-later') +depends=( + 'pacman>6.1' + 'git' +) +optdepends=( + 'sudo: privilege elevation' + 'doas: privilege elevation' +) +makedepends=('go>=1.24') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz") +sha256sums=('b483a6b99cba19250e874414a7d55f0d0c518b9c735b7d64dd354b51151bd465') + +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 +} -- cgit v0.12