void-packages/srcpkgs/zsh/template

48 lines
1.5 KiB
Text
Raw Normal View History

2011-07-30 14:57:17 +00:00
# Template file for 'zsh'
pkgname=zsh
2013-12-15 11:17:19 +00:00
version=5.0.3
revision=2
build_style=gnu-configure
2012-11-18 10:07:27 +00:00
make_build_args="info"
make_install_args="install.info"
2012-06-04 12:28:07 +00:00
configure_args="--enable-etcdir=/etc/zsh --enable-zshenv=/etc/zsh/zshenv
2012-12-22 03:20:05 +00:00
--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"
2012-07-07 11:41:00 +00:00
makedepends="gdbm-devel pcre-devel>=8.30 libcap-devel ncurses-devel"
2012-12-22 03:20:05 +00:00
short_desc="The Z SHell"
2011-07-30 14:57:17 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.zsh.org"
license="zsh"
2012-06-04 12:28:07 +00:00
distfiles="http://www.zsh.org/pub/zsh-$version.tar.bz2"
2013-12-15 11:17:19 +00:00
checksum=14c7685d5e5acbfe9436f2fe9578c17e0dbb00dfbd7d88c72b49930af91136cf
2011-07-30 14:57:17 +00:00
2012-07-25 05:54:02 +00:00
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
2013-12-15 11:17:19 +00:00
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
2012-07-25 05:54:02 +00:00
rm -f Completion/Linux/Command/_{pkgtool,rpmbuild,yast}
2013-12-15 11:17:19 +00:00
rm -f Completion/Unix/Command/_{osc,systemd}
2012-07-25 05:54:02 +00:00
}
2011-12-10 09:06:15 +00:00
post_install() {
2011-07-30 14:57:17 +00:00
vinstall LICENCE 644 usr/share/licenses/zsh
}
zsh_package() {
register_shell="/bin/zsh"
pkg_install() {
2013-12-15 11:17:19 +00:00
vmove all
}
}