40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'tcsh'
|
|
pkgname=tcsh
|
|
version=6.24.12
|
|
revision=1
|
|
build_style=gnu-configure
|
|
conf_files="/etc/csh.login /etc/csh.cshrc"
|
|
makedepends="ncurses-devel automake"
|
|
short_desc="Enhanced but compatible version of the Berkeley C shell"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.tcsh.org/"
|
|
distfiles="https://astron.com/pub/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=e3270ce9667fd5bd2a046687659fcf5fd6a6781326f806ebd724f1e1c9cd4185
|
|
register_shell="/bin/tcsh /bin/csh"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
|
|
makedepends+=" libxcrypt-devel"
|
|
fi
|
|
|
|
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
|
|
}
|
|
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
|
|
}
|