# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=git-branchless pkgver=0.6.0 pkgrel=0 pkgdesc="Suite of tools to help you visualize, navigate, manipulate, and repair your commit graph" url="https://github.com/arxanas/git-branchless" arch="aarch64 armhf armv7 ppc64le x86 x86_64" # blocked by rust/cargo license="GPL-2.0-only" makedepends=" cargo libgit2-dev libssh2-dev openssl-dev>3 sqlite-dev " checkdepends="git" source="https://github.com/arxanas/git-branchless/archive/v$pkgver/git-branchless-$pkgver.tar.gz unbundle-sqlite.patch " export LIBSSH2_SYS_USE_PKG_CONFIG=1 # use system libssh2 export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo build --frozen --release } check() { # NOTE: The first two skipped tests hang on CI, see # https://github.com/arxanas/git-branchless/pull/159 for more info. # The other two are probably broken. TEST_GIT_EXEC_PATH=$(git --exec-path) \ TEST_GIT=$(which git) \ RUST_BACKTRACE=1 \ cargo test --workspace --frozen -- \ --skip=test_checkout_pty \ --skip=test_next_ambiguous_interactive \ --skip=command::test_test::test_test_config_strategy \ --skip=command::test_test::test_test_verbosity } package() { install -D -m755 target/release/git-branchless -t "$pkgdir"/usr/bin/ } sha512sums=" 03ce4c61d663d429c0e5ff6fbf3eb80a801d625b35558da5652311ee2c9c0c33abe824d2ee1bd46df74108b88651034b66f02f4a51d9050a283a7f36419d14a8 git-branchless-0.6.0.tar.gz ebee160cd936b151515609d9c972c0b747d3bb122bfc0cb6946e3ade86e521efdf1277b033fcf76ecd60f4e81fcfa0f233db1eb2da7ad800d30f7a938cf5ba2f unbundle-sqlite.patch "