void-packages/srcpkgs/fish-shell/template
Awal Garg 176cc23ea4 fish-shell: add dependency "bc"
Without bc, typing `sudo x` and hitting tab to autocomplete with throw an error from the completion file stating "command bc not found".
2016-08-28 15:16:21 +00:00

34 lines
963 B
Bash

# Template file for 'fish-shell'
pkgname=fish-shell
version=2.3.1
revision=2
build_style=gnu-configure
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=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
}