summaryrefslogblamecommitdiff
path: root/user/tcsh/APKBUILD
blob: 41b8a2e254ef900cc3a98aa55ac31ce8b76a8c0f (plain) (tree)
1
2
3
4
5
6
7
8
9


                                       
              


                                   
                          
                          




                                                                     
                          
                                                                            

                                                                                               
                                            
 
         













                                                      



                  


                                      
                                                                                                                                                                 
                                                                                                                                                      
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=tcsh
pkgver=6.22.02
_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="8b0bd11c8c297d155ed386fd9552d4d4da79375b1d7801edf20a8cdc8ad797f10e1c28b3f6527a657dc2f38704ba4cea51612aefa0987ee968b385ad8dea5199  tcsh-6.22.02.tar.gz
40149d8eb2fc0fe5184f3c24c7a1b728e881cc0048ccd37a986c3b2d2094499ec1c37ae2bae4c209fb8a847aa943e83e81f79e3d2f55c59990bc00d9d07f5a94  001-sysmalloc.patch"