mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
this does not download deps that won't be used for the default build target (the ctarget we are building for implicitly). this makes quite a few fetches faster.. because a ton of crates download a 10mb "windows-sys" that is never used, amongst other things. maybe breaks a thing or two.
55 lines
1.6 KiB
Text
55 lines
1.6 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
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
|
|
|
|
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
|
|
"
|