void-packages/srcpkgs/fish-shell/template

33 lines
896 B
Bash

# Template file for 'fish-shell'
pkgname=fish-shell
version=2.7.0
revision=1
build_style=gnu-configure
configure_args="ac_cv_file__proc_self_stat=yes"
hostmakedepends="automake libtool"
makedepends="ncurses-devel"
depends="bc groff"
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=3a76b7cae92f9f88863c35c832d2427fb66082f98e92a02203dc900b8fa87bcb
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
fi
pre_configure() {
autoreconf -fi
}