summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 10 insertions, 19 deletions
diff --git a/PKGBUILD b/PKGBUILD
index cd4594b12a1..e48ff8ded4b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Jguer <joaogg3 at gmail dot com>
pkgname=yay-bin
-pkgver=1.114
+pkgver=2.152
pkgrel=1
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go. Pre-compiled."
arch=('x86_64')
@@ -12,30 +12,21 @@ depends=(
provides=('yay')
conflicts=('yay')
-source_x86_64=("https://github.com/Jguer/yay/releases/download/v${pkgver}/${pkgname/-bin}_${pkgver}_amd64.tar.gz")
-md5sums_x86_64=('a7e6872a341f9dd52f5116ad19511d00')
-
-case "$CARCH" in
- arm*) _pkgarch="arm"
- ;;
- i686) _pkgarch="386"
- ;;
- x86_64) _pkgarch="amd64"
- ;;
-esac
+source_x86_64=("https://github.com/Jguer/yay/releases/download/v${pkgver}/${pkgname/-bin}_${pkgver}_${CARCH}.tar.gz")
+md5sums_x86_64=('bd70958023e21e828cb7b82e792fca24')
package() {
- install -Dm755 "${srcdir}/${pkgname/-bin}_${pkgver}_${_pkgarch}/${pkgname/-bin}" "${pkgdir}/usr/bin/${pkgname/-bin}"
+ _output="${srcdir}/${pkgname/-bin}_${pkgver}_${CARCH}"
+ install -Dm755 "${_output}/${pkgname/-bin}" "${pkgdir}/usr/bin/${pkgname/-bin}"
- install -Dm644 "${srcdir}/${pkgname/-bin}_${pkgver}_${_pkgarch}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname/-bin}/LICENSE"
+ install -Dm644 "${_output}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname/-bin}/LICENSE"
- install -Dm644 "${srcdir}/${pkgname/-bin}_${pkgver}_${_pkgarch}/yay.8" "${pkgdir}/usr/share/man/man8/yay.8"
+ install -Dm644 "${_output}/yay.8" "${pkgdir}/usr/share/man/man8/yay.8"
# Shell autocompletion script
- install -Dm644 "${srcdir}/${pkgname/-bin}_${pkgver}_${_pkgarch}/bash-completion" "${pkgdir}/usr/share/bash-completion/completions/yay"
-
- install -Dm644 "${srcdir}/${pkgname/-bin}_${pkgver}_${_pkgarch}/zsh-completion" "${pkgdir}/usr/share/zsh/site-functions/_yay"
+ install -Dm644 "${_output}/bash-completion" "${pkgdir}/usr/share/bash-completion/completions/yay"
- install -Dm644 "${srcdir}/${pkgname/-bin}_${pkgver}_${_pkgarch}/yay.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/yay.fish"
+ install -Dm644 "${_output}/zsh-completion" "${pkgdir}/usr/share/zsh/site-functions/_yay"
+ install -Dm644 "${_output}/yay.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/yay.fish"
}