void-packages/srcpkgs/fish-shell/template

33 lines
890 B
Bash

# Template file for 'fish-shell'
pkgname=fish-shell
version=2.4.0
revision=1
build_style=gnu-configure
configure_args="ac_cv_file__proc_self_stat=yes"
hostmakedepends="automake libtool"
makedepends="ncurses-devel"
depends="bc"
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=06bbb2323360439c4044da762d114ec1aa1aba265cec71c0543e6a0095c9efc5
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
}