# Contributor: # Maintainer: Natanael Copa pkgname=zsh pkgver=5.0.5 pkgrel=0 pkgdesc="A very advanced and programmable command interpreter (shell)" url="http://www.zsh.org/" arch="all" license="BSD" depends= makedepends=ncurses-dev install="zsh.post-install zsh.post-upgrade zsh.pre-deinstall" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 zprofile" subpackages="$pkgname-doc" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --bindir=/bin \ --enable-etcdir=/etc/zsh \ --enable-zshenv=/etc/zsh/zshenv \ --enable-zlogin=/etc/zsh/zlogin \ --enable-zlogout=/etc/zsh/zlogout \ --enable-zshrc=/etc/zsh/zshrc \ --enable-multibyte \ --enable-function-subdirs \ --enable-zsh-secure-free \ --sysconfdir=/etc \ --with-tcsetpgrp \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -Dm644 "$srcdir"/zprofile "$pkgdir"/etc/zprofile } md5sums="6156dc2f19b0a067bdbc0fb7f81e2017 zsh-5.0.5.tar.bz2 a5e93cd6880da04a63fc4fcaaa03987f zprofile" sha256sums="6624d2fb6c8fa4e044d2b009f86ed1617fe8583c83acfceba7ec82826cfa8eaf zsh-5.0.5.tar.bz2 e3c3625d966c8277274798f26241857df5fc520e18674deba6cc356f6b022d63 zprofile" sha512sums="34d69bed190cbc476bcdaa4b703fee1caaeae7e011fe7ea595b29bbd31df57bbe4d19b5940618e0c89a0a4b6c476f9ef03ce9829b4fb3735c1aedf309b0225a5 zsh-5.0.5.tar.bz2 59182b99447872ded8adf0d890e9359ee47fce0b7acb2808f4308f945885fbf6d977a0917bbb5c0f21454caf3ba06ab092127732da4f84292d6ab0989a0110fe zprofile"