# $Id: PKGBUILD 63350 2012-01-30 22:26:07Z lfleischer $ # Maintainer: Lukas Fleischer # Contributor: Eric Belanger # Contributor: Judd Vinet pkgname=tcsh pkgver=6.18.00 pkgrel=1 pkgdesc='Enhanced version of the Berkeley C shell.' arch=('i686' 'x86_64' 'mips64el') url='http://www.tcsh.org/Welcome' license=('BSD') depends=('ncurses') backup=('etc/csh.cshrc' 'etc/csh.login') install='tcsh.install' source=("ftp://ftp.astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz" 'csh.cshrc' 'csh.login') md5sums=('ee9b3aa36fb38d32eab6a37a34e4c341' '7ca0fe6d1a1b9a0093f632499d4fb112' '4869b9da87c79854e2cc97241f125853') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --sysconfdir=/etc --bindir=/bin make } package() { cd "${srcdir}/${pkgname}-${pkgver}" install -dm0755 "${pkgdir}/bin/" make DESTDIR="${pkgdir}" mandir=/usr/share/man install install.man install -Dm0644 "${srcdir}/csh.cshrc" "${pkgdir}/etc/csh.cshrc" install -Dm0644 "${srcdir}/csh.login" "${pkgdir}/etc/csh.login" install -Dm0644 Copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" ln -s tcsh "${pkgdir}/bin/csh" }