void-packages/srcpkgs/fish-shell/template
2017-06-03 13:30:34 -03:00

32 lines
896 B
Bash

# Template file for 'fish-shell'
pkgname=fish-shell
version=2.6.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=7ee5bbd671c73e5323778982109241685d58a836e52013e18ee5d9f2e638fdfb
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
}