vp-build/srcpkgs/lsd/template

34 lines
1.2 KiB
Bash

# Template file for 'lsd'
pkgname=lsd
version=0.23.1
revision=1
build_style=cargo
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/Peltoche/lsd"
changelog="https://raw.githubusercontent.com/Peltoche/lsd/master/CHANGELOG.md"
distfiles="https://github.com/Peltoche/lsd/archive/${version}.tar.gz"
checksum=9698919689178cc095f39dcb6a8a41ce32d5a1283e6fe62755e9a861232c307d
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`)
#
# The other test needs to be skipped because it incorrectly intercepts the skip arguments
# and fails the whole test (see https://github.com/Peltoche/lsd/pull/744)
if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then
make_check_args="--
--skip test_cannot_access_subdir_exit_status
--skip test_symlink_arrow_from_args_none"
fi
export SHELL_COMPLETIONS_DIR="${wrksrc}"
post_install() {
vcompletion lsd.bash bash
vcompletion lsd.fish fish
vcompletion _lsd zsh
}