# Template file for 'jujutsu' pkgname=jujutsu version=0.15.1 revision=2 build_style=cargo build_helper=qemu hostmakedepends="pkg-config" makedepends="libgit2-devel openssl-devel libzstd-devel" depends="openssh" checkdepends="openssh" short_desc="Git-compatible VCS that is both simple and powerful" maintainer="Leah Neukirchen " license="Apache-2.0" homepage="https://github.com/martinvonz/jj" changelog="https://github.com/martinvonz/jj/blob/main/CHANGELOG.md" distfiles="https://github.com/martinvonz/jj/archive/refs/tags/v${version}.tar.gz" checksum=e39f80edaa01da29e86782424d031c38324eabff10c44704781c80fd60c9fb0e conflicts="jj>=0" pre_configure() { # Downgrade to use Void system libgit2 1.6 vsed -i 's/git2 = "0.18.2"/git2 = "0.17.2"/' Cargo.toml cargo update --package git2@0.18.2 --precise 0.17.2 } do_install() { for f in target/*/release/jj; do vbin $f done for _shell in bash fish zsh; do vtargetrun ${DESTDIR}/usr/bin/jj util completion ${_shell} > jj.${_shell} vcompletion jj.${_shell} ${_shell} jj done }