Initial commit
This commit is contained in:
commit
c2607810d0
8 changed files with 202 additions and 0 deletions
56
PKGBUILD
Normal file
56
PKGBUILD
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
|
||||
# Contributor: Jguer <pkgbuilds at jguer.space>
|
||||
pkgname=yay
|
||||
pkgver=12.5.0
|
||||
pkgrel=2
|
||||
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=(
|
||||
git
|
||||
glibc
|
||||
'pacman>6.1'
|
||||
)
|
||||
optdepends=(
|
||||
'sudo: privilege elevation'
|
||||
'doas: privilege elevation'
|
||||
)
|
||||
makedepends=(
|
||||
'go>=1.21'
|
||||
)
|
||||
source=(
|
||||
"${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz"
|
||||
)
|
||||
b2sums=('9fd159e29001a7a637bca8711d54cb9b662890bee66add2a343db93709b6ac579215b203ce4b5585a7dea2893c7937ef52a9ccf709a318a1b4f4f686bcc98a73')
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
Loading…
Add table
Add a link
Reference in a new issue