# Contributor: Dan Theisen <djt@hxx.in> # Maintainer: Dan Theisen <djt@hxx.in> pkgname=tcsh pkgver=6.22.04 _pkgver=${pkgver%.*.*}_${pkgver#*.} _pkgver=${_pkgver%.*}_${_pkgver#*.} pkgrel=0 pkgdesc="extended C-shell" url="https://www.tcsh.org" arch="all" license="BSD-3-Clause" depends="" checkdepends="diffutils autoconf" makedepends="ncurses-dev ncurses-terminfo utmps-dev gettext-tiny-dev" subpackages="$pkgname-doc" install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall" source="$pkgname-$pkgver.tar.gz::https://github.com/tcsh-org/tcsh/archive/TCSH${_pkgver}.tar.gz 001-sysmalloc.patch" builddir="$srcdir/${pkgname}-TCSH${_pkgver}" build() { LIBS="-lutmps -lskarnet -ltinfo" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --bindir=/bin \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-nls \ --enable-nls-catalogs \ --disable-rpath make } check() { make check } package() { make DESTDIR="$pkgdir" install } sha512sums="0f4b70c1c5bb29fb56a2eacac5c766914cb5042a9cf94e92735ef5ff2ca1162b345cf21b6b645020a5122b820a92678109bb1072b0c73c89fa70bd710aa1dd5f tcsh-6.22.04.tar.gz 40149d8eb2fc0fe5184f3c24c7a1b728e881cc0048ccd37a986c3b2d2094499ec1c37ae2bae4c209fb8a847aa943e83e81f79e3d2f55c59990bc00d9d07f5a94 001-sysmalloc.patch"