pkg: add yay
This commit is contained in:
parent
9ea951ce8e
commit
50188259ab
|
@ -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
|
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue