Skip to content

Commit

Permalink
jj: update to 0.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ognevny committed Mar 7, 2024
1 parent 7979657 commit 57ec0eb
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions mingw-w64-jj/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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}"
Expand All @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 57ec0eb

Please sign in to comment.