# Description: A very advanced and programmable command interpreter (shell) for UNIX # URL: http://www.zsh.org/ # Maintainer: protonesso, nagakamira at gmail dot com # Depends on: ncurses libcap pcre gdbm # Section: shells name=zsh version=5.8 release=1 backup=('etc/zsh/zprofile') source=("https://download.sourceforge.net/project/$name/$name/$version/$name-$version.tar.xz") build() { cd "$SRC"/$name-$version sed -i 's#/usr/share/keymaps#/usr/share/kbd/keymaps#g' Completion/Unix/Command/_loadkeys sed -i 's#/usr/share/misc/usb.ids#/usr/share/hwdata/usb.ids#g' Completion/Linux/Command/_lsusb 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 ./configure $BUILDFLAGS \ --prefix=/usr \ --with-tcsetpgrp \ --with-term-lib='ncursesw' \ --enable-cap \ --enable-etcdir=/etc/zsh \ --enable-fndir=/usr/share/zsh/functions \ --enable-function-subdirs \ --enable-maildir-support \ --enable-multibyte \ --enable-pcre \ --enable-scriptdir=/usr/share/zsh/scripts \ --enable-zlogin=/etc/zsh/zlogin \ --enable-zlogout=/etc/zsh/zlogout \ --enable-zprofile=/etc/zsh/zprofile \ --enable-zshenv=/etc/zsh/zshenv \ --enable-zshrc=/etc/zsh/zshrc \ --enable-zsh-secure-free make make DESTDIR="$PKG" install install -D -m644 "$STUFF"/zsh/zprofile "$PKG"/etc/zsh/zprofile }