generated from archlinux/template
v5.608
Signed-off-by: Jguer <me@jguer.space>
This commit is contained in:
parent
d5a1ce0e62
commit
4648e08228
6
.SRCINFO
6
.SRCINFO
@ -1,6 +1,6 @@
|
|||||||
pkgbase = yay
|
pkgbase = yay
|
||||||
pkgdesc = Yet another yogurt. Pacman wrapper and AUR helper written in go.
|
pkgdesc = Yet another yogurt. Pacman wrapper and AUR helper written in go.
|
||||||
pkgver = 4.505
|
pkgver = 5.608
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/Jguer/yay
|
url = https://github.com/Jguer/yay
|
||||||
arch = i686
|
arch = i686
|
||||||
@ -16,8 +16,8 @@ pkgbase = yay
|
|||||||
conflicts = yay-git
|
conflicts = yay-git
|
||||||
options = !strip
|
options = !strip
|
||||||
options = !emptydirs
|
options = !emptydirs
|
||||||
source = https://github.com/Jguer/yay/archive/v4.505.tar.gz
|
source = https://github.com/Jguer/yay/archive/v5.608.tar.gz
|
||||||
sha1sums = 9918ce6ccb09a988b80eb38156f141f78a84add5
|
sha1sums = bc8bc58a9e48befe6ae9def129a021a49cc9c1a0
|
||||||
|
|
||||||
pkgname = yay
|
pkgname = yay
|
||||||
|
|
||||||
|
32
PKGBUILD
32
PKGBUILD
@ -1,6 +1,6 @@
|
|||||||
# Maintainer: Jguer <joaogg3@gmail.com>
|
# Maintainer: Jguer <joaogg3@gmail.com>
|
||||||
pkgname=yay
|
pkgname=yay
|
||||||
pkgver=4.505
|
pkgver=5.608
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
|
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
|
||||||
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
|
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
|
||||||
@ -16,36 +16,14 @@ makedepends=(
|
|||||||
)
|
)
|
||||||
conflicts=('yay-bin' 'yay-git')
|
conflicts=('yay-bin' 'yay-git')
|
||||||
source=("https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
|
source=("https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
|
||||||
sha1sums=('9918ce6ccb09a988b80eb38156f141f78a84add5')
|
sha1sums=('bc8bc58a9e48befe6ae9def129a021a49cc9c1a0')
|
||||||
|
|
||||||
prepare() {
|
|
||||||
export GOPATH="${srcdir}/.go"
|
|
||||||
export GOBIN="$GOPATH/bin"
|
|
||||||
mkdir -p "$GOPATH"
|
|
||||||
rm -rf "$GOPATH/src"
|
|
||||||
ln -sf "$srcdir/$pkgname-$pkgver/vendor" "$GOPATH/src"
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
export GOPATH="${srcdir}/.go"
|
|
||||||
export GOBIN="$GOPATH/bin"
|
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
go build -v -o ${pkgname} -ldflags "-s -w -X main.version=${pkgver}"
|
make VERSION=$pkgver
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
_output="${srcdir}/$pkgname-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
install -Dm755 "${_output}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
make VERSION=$pkgver DESTDIR="$pkgdir" install
|
||||||
|
|
||||||
# Install manpage
|
|
||||||
install -Dm644 "${_output}/yay.8" "${pkgdir}/usr/share/man/man8/yay.8"
|
|
||||||
|
|
||||||
# Install bash completion
|
|
||||||
install -Dm644 "${_output}/bash-completion" "${pkgdir}/usr/share/bash-completion/completions/yay"
|
|
||||||
|
|
||||||
# Install zsh completion
|
|
||||||
install -Dm644 "${_output}/zsh-completion" "${pkgdir}/usr/share/zsh/site-functions/_yay"
|
|
||||||
|
|
||||||
# Install fish completion
|
|
||||||
install -Dm644 "${_output}/yay.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/yay.fish"
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user