34 lines
950 B
Bash
34 lines
950 B
Bash
# Template file for 'fish-shell'
|
|
pkgname=fish-shell
|
|
version=2.3.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool"
|
|
makedepends="ncurses-devel"
|
|
register_shell="/usr/bin/fish"
|
|
conf_files="/etc/fish/config.fish"
|
|
wrksrc="fish-${version}"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://fishshell.com/"
|
|
license="GPL-2"
|
|
short_desc="User friendly shell intended mostly for interactive use"
|
|
distfiles="https://github.com/fish-shell/fish-shell/releases/download/${version}/fish-${version}.tar.gz"
|
|
checksum=328acad35d131c94118c1e187ff3689300ba757c4469c8cc1eaa994789b98664
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # Nothing to add
|
|
;;
|
|
*) # Add CXXFLAGS required for glibc
|
|
CXXFLAGS="-D_GNU_SOURCE=1 -D_ISO99_SOURCE=1"
|
|
;;
|
|
esac
|
|
export ac_cv_file__proc_self_stat=yes
|
|
fi
|
|
pre_configure() {
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
patch -p0 < ${FILESDIR}/no-glibc-check.patch
|
|
fi
|
|
autoreconf -fi
|
|
}
|