summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2025-12-27 04:45:13 (GMT)
committerBritney Fransen <brfransen@gmail.com>2025-12-27 04:45:13 (GMT)
commit34dac28e249575f6181ade5ab032772bf7998fe0 (patch)
tree9b316e67e0ceb09c8780f11ddce864a9b5062600
parentb9d1ab9b4034b7bd47e213d3ce3702a31226cd04 (diff)
downloadlinhes_pkgbuild-34dac28e249575f6181ade5ab032772bf7998fe0.zip
linhes_pkgbuild-34dac28e249575f6181ade5ab032772bf7998fe0.tar.gz
linhes_pkgbuild-34dac28e249575f6181ade5ab032772bf7998fe0.tar.bz2
yay: initial addition
-rw-r--r--linhes/yay/.gitignore6
-rw-r--r--linhes/yay/PKGBUILD37
2 files changed, 43 insertions, 0 deletions
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 <pkgbuilds at jguer.space>
+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
+}