void-packages/srcpkgs/fish-shell/template
2017-02-04 07:55:18 +01:00

32 lines
896 B
Bash

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