From 57ec0eb0b332f5f864eb21cd7320b3d47acab3cb Mon Sep 17 00:00:00 2001 From: ognevnydemon Date: Thu, 7 Mar 2024 14:04:40 +0300 Subject: [PATCH] jj: update to 0.15.1 --- mingw-w64-jj/PKGBUILD | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/mingw-w64-jj/PKGBUILD b/mingw-w64-jj/PKGBUILD index e8ef7972fd694..6286fdd100a52 100644 --- a/mingw-w64-jj/PKGBUILD +++ b/mingw-w64-jj/PKGBUILD @@ -4,7 +4,7 @@ _realname=jj pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}" "${MINGW_PACKAGE_PREFIX}-${_realname}-docs") -pkgver=0.14.0 +pkgver=0.15.1 pkgrel=1 pkgdesc="Jujutsu (an experimental VCS) (mingw-w64)" arch=('any') @@ -17,8 +17,8 @@ msys2_references=( license=('spdx:Apache-2.0') makedepends=("${MINGW_PACKAGE_PREFIX}-rust") depends=("${MINGW_PACKAGE_PREFIX}-zlib") -source=("${url}/archive/refs/tags/v${pkgver}/${_realname}-${pkgver}.tar.gz") -sha256sums=('33bea9014f53db520d2983830f3da75b7124c44a16b75850a1dd781355aeff5b') +source=("${url}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz") +sha256sums=('e39f80edaa01da29e86782424d031c38324eabff10c44704781c80fd60c9fb0e') prepare() { cd "${srcdir}/${_realname}-${pkgver}" @@ -38,10 +38,6 @@ build() { --release \ --frozen \ --all-features - - for _shell in bash fish zsh; do - ./target/release/jj util completion "--${_shell}" > "jj.${_shell}" - done } check() { @@ -69,9 +65,11 @@ package_jj() { rm ${pkgdir}${MINGW_PREFIX}/bin/fake* install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE" - install -Dm644 jj.bash "${pkgdir}${MINGW_PREFIX}/share/bash-completion/completions/jj" - install -Dm644 jj.fish "${pkgdir}${MINGW_PREFIX}/share/fish/vendor_completions.d/jj.fish" - install -Dm644 jj.zsh "${pkgdir}${MINGW_PREFIX}/share/zsh/site-functions/_jj" + + local _complete="./target/release/jj util completion" + $_complete --bash | install -Dm644 /dev/stdin "${pkgdir}${MINGW_PREFIX}/share/bash-completion/completions/jj" + $_complete --fish | install -Dm644 /dev/stdin "${pkgdir}${MINGW_PREFIX}/share/fish/vendor_completions.d/jj.fish" + $_complete --zsh | install -Dm644 /dev/stdin "${pkgdir}${MINGW_PREFIX}/share/zsh/site-functions/_jj" } package_jj-docs() {