Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions srcpkgs/fish-shell/template
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Template file for 'fish-shell'
pkgname=fish-shell
version=4.2.1
version=4.3.1
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"
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"
Expand All @@ -15,16 +15,20 @@ 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=0f99222a3063377c91fbf78d9850edab7a0b91bdbed201cf79da48ea3a41f393
checksum=78f8881b971ab95ace5f2a9a25efef66f6c180396b2085b9852f21f8e4a30408
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

rm ${DESTDIR}/usr/bin/fish_{indent,key_reader}
ln -s fish ${DESTDIR}/usr/bin/fish_indent
ln -s fish ${DESTDIR}/usr/bin/fish_key_reader
ln -sf fish ${DESTDIR}/usr/bin/fish_indent
ln -sf fish ${DESTDIR}/usr/bin/fish_key_reader
}