void-packages/srcpkgs/fish-shell/template

34 lines
910 B
Bash

# Template file for 'fish-shell'
pkgname=fish-shell
version=2.2.0
revision=3
build_style=gnu-configure
hostmakedepends="automake"
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="http://fishshell.com/files/${version}/fish-${version}.tar.gz"
checksum=a76339fd14ce2ec229283c53e805faac48c3e99d9e3ede9d82c0554acfc7b77a
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
}