36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'lsd'
|
|
pkgname=lsd
|
|
version=1.0.0
|
|
revision=1
|
|
build_style=cargo
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libgit2-devel"
|
|
checkdepends="git"
|
|
short_desc="Next gen ls command with lots of pretty colors and awesome icons"
|
|
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/lsd-rs/lsd"
|
|
changelog="https://raw.githubusercontent.com/Peltoche/lsd/master/CHANGELOG.md"
|
|
distfiles="https://github.com/lsd-rs/lsd/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=ab34e9c85bc77cfa42b43bfb54414200433a37419f3b1947d0e8cfbb4b7a6325
|
|
conflicts="disputils"
|
|
|
|
# The 'cannot_access_subdir_exit_status' fails on CI
|
|
# because the runner seems to allow setting the b dir in a/b/c to readonly (0400)
|
|
# and then navigating this structure recursively (like in `tree`)
|
|
if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then
|
|
make_check_args="-- --skip test_cannot_access_subdir_exit_status"
|
|
fi
|
|
|
|
export SHELL_COMPLETIONS_DIR="${wrksrc}"
|
|
|
|
post_patch() {
|
|
cargo update --package git2@0.16.1 --precise 0.17.2
|
|
}
|
|
|
|
post_install() {
|
|
vcompletion lsd.bash bash
|
|
vcompletion lsd.fish fish
|
|
vcompletion _lsd zsh
|
|
}
|