void-packages/srcpkgs/fish-shell/template
James Campos 3f5f4fa416 fish: update to 2.3.1
2.3.1 is not available from fishshell.com; use the release page instead
2016-07-05 07:28:40 -07:00

33 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
}