# tcsh, ftp://ftp.astron.com/pub/tcsh

name=tcsh
version=6.12.00
source=($name-$version.tar.gz csh.login csh.logout csh.cshrc)

build() {
    cd $name-$version
    LDFLAGS="$LDFLAGS -lncurses" ./configure --prefix= --mandir=/usr/man
    make
    make DESTDIR=$PKG install install.man
    mkdir -p $PKG/etc
    cp ../csh.login $PKG/etc
    cp ../csh.logout $PKG/etc
    cp ../csh.cshrc $PKG/etc
    chmod -R +w $PKG
    strip $PKG/bin/*
    gzip -9 $PKG/usr/man/man?/*
}
