diff options
| author | Britney Fransen <brfransen@gmail.com> | 2025-12-27 04:45:13 (GMT) |
|---|---|---|
| committer | Britney Fransen <brfransen@gmail.com> | 2025-12-27 04:45:13 (GMT) |
| commit | 34dac28e249575f6181ade5ab032772bf7998fe0 (patch) | |
| tree | 9b316e67e0ceb09c8780f11ddce864a9b5062600 | |
| parent | b9d1ab9b4034b7bd47e213d3ce3702a31226cd04 (diff) | |
| download | linhes_pkgbuild-34dac28e249575f6181ade5ab032772bf7998fe0.zip linhes_pkgbuild-34dac28e249575f6181ade5ab032772bf7998fe0.tar.gz linhes_pkgbuild-34dac28e249575f6181ade5ab032772bf7998fe0.tar.bz2 | |
yay: initial addition
| -rw-r--r-- | linhes/yay/.gitignore | 6 | ||||
| -rw-r--r-- | linhes/yay/PKGBUILD | 37 |
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 +} |
