# Template file for 'fish-shell' pkgname=fish-shell version=4.4.0 revision=1 build_style=cmake build_helper="rust" configure_args="-DCMAKE_BUILD_TYPE=Release -DRust_CARGO=${XBPS_WRAPPERDIR}/cargo" make_check_target="fish_run_tests" hostmakedepends="gettext pkg-config cargo cargo-auditable python3-Sphinx" makedepends="pcre2-devel rust-std" checkdepends="git mdocml python3-pexpect procps-ng" short_desc="User friendly shell intended mostly for interactive use" maintainer="tranzystorekk " license="GPL-2.0-only" homepage="https://fishshell.com/" changelog="https://raw.githubusercontent.com/fish-shell/fish-shell/refs/heads/master/CHANGELOG.rst" distfiles="https://github.com/fish-shell/fish-shell/releases/download/${version}/fish-${version}.tar.xz" checksum=529e1072c034f6c9d21a922c359886df75129c3d81a15bd8656a3c4860993ad5 register_shell="/bin/fish /usr/bin/fish" # some tests fail in ci, cba to hardcode skipping make_check=ci-skip # project shells out to the cross-built binary to generate docs if [ ${CROSS_BUILD} ]; then configure_args+=" -DWITH_DOCS=OFF" fi post_install() { # Starting with fish-3.0.0 this is a skeleton file with only comments rm ${DESTDIR}/etc/fish/config.fish ln -sf fish ${DESTDIR}/usr/bin/fish_indent ln -sf fish ${DESTDIR}/usr/bin/fish_key_reader }