void-packages/srcpkgs/zsh/template
2013-12-15 12:22:58 +01:00

47 lines
1.5 KiB
Text

# Template file for 'zsh'
pkgname=zsh
version=5.0.3
revision=2
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"
hostmakedepends="pcre-devel>=8.30"
makedepends="gdbm-devel pcre-devel>=8.30 libcap-devel ncurses-devel"
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=14c7685d5e5acbfe9436f2fe9578c17e0dbb00dfbd7d88c72b49930af91136cf
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
for _fpath in AIX BSD Cygwin Darwin Debian Mandriva openSUSE Redhat Solaris; do
rm -rf Completion/$_fpath
sed "s#\s*Completion/$_fpath/\*/\*##g" -i Src/Zle/complete.mdd
done
rm -f Completion/Linux/Command/_{pkgtool,rpmbuild,yast}
rm -f Completion/Unix/Command/_{osc,systemd}
}
post_install() {
vinstall LICENCE 644 usr/share/licenses/zsh
}
zsh_package() {
register_shell="/bin/zsh"
pkg_install() {
vmove all
}
}