void-packages/srcpkgs/zsh/template
2012-12-22 04:20:05 +01:00

37 lines
1.3 KiB
Text

# Template file for 'zsh'
pkgname=zsh
version=5.0.2
revision=1
build_style=gnu-configure
make_build_args="info"
make_install_args="install.info"
configure_args="--enable-etcdir=/etc/zsh --enable-zshenv=/etc/zsh/zshenv
--enable-zlogin=/etc/zsh/zlogin --enable-zlogout=/etc/zsh/zlogout
--enable-zprofile=/etc/profile --enable-zshrc=/etc/zsh/zshrc
--enable-maildir-support --enable-function-subdirs
--enable-fndir=/usr/share/zsh/functions --with-term-lib=ncursesw
--enable-scriptdir=/usr/share/zsh/scripts --enable-pcre
--enable-multibyte --enable-cap --with-tcsetpgrp"
makedepends="gdbm-devel pcre-devel>=8.30 libcap-devel ncurses-devel"
register_shell="/bin/zsh"
short_desc="The Z SHell"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.zsh.org"
license="zsh"
distfiles="http://www.zsh.org/pub/zsh-$version.tar.bz2"
checksum=eb220ae5a8076191ec6b4c6a5a2f18122d074a19f25b45f0320b44b8166c5a03
pre_configure() {
# Set correct keymap path
sed -i 's#/usr/share/keymaps#/usr/share/kbd/keymaps#g' \
Completion/Unix/Command/_loadkeys
# Remove unneeded and conflicting completion scripts
rm -rf Completion/{AIX,BSD,Cygwin,Darwin,Debian,Mandriva,openSUSE,Redhat,Solaris}
rm -f Completion/Linux/Command/_{pkgtool,rpmbuild,yast}
rm -f Completion/Unix/Command/_osc
}
post_install() {
vinstall LICENCE 644 usr/share/licenses/zsh
}