void-packages/srcpkgs/tcsh/template
2017-11-20 13:16:46 +01:00

39 lines
1.1 KiB
Bash

# Template file for 'tcsh'
pkgname=tcsh
version=6.20.00
revision=2
build_style=gnu-configure
register_shell="/bin/tcsh /bin/csh"
conf_files="/etc/csh.login /etc/csh.cshrc"
makedepends="ncurses-devel automake"
short_desc="Enhanced but compatible version of the Berkeley C shell"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="http://www.tcsh.org/"
distfiles="ftp://ftp.astron.com/pub/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=b89de7064ab54dac454a266cfe5d8bf66940cb5ed048d0c30674ea62e7ecef9d
post_extract() {
sed -i '/define BSDWAIT/d' sh.proc.c
}
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -e ';s/# undef SYSMALLOC/# define SYSMALLOC/g' -i config_f.h
;;
esac
}
pre_build() {
make CC_FOR_GETHOST="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" gethost
}
pre_check() {
# This test fail, at each bump remove and check if it works
sed -i '/AT_SETUP(\[Quoting of expansions in/ s/$/ \nAT_XFAIL_IF(\[:\])/' tests/lexical.at
}
post_install() {
vconf ${FILESDIR}/csh.login
vconf ${FILESDIR}/csh.cshrc
ln -s tcsh ${DESTDIR}/usr/bin/csh
ln -s tcsh.1 ${DESTDIR}/usr/share/man/man1/csh.1
vlicense Copyright LICENSE
}