2006-04-06 19:26:00 +02:00
|
|
|
# Description: Very powerfull shell
|
2021-01-29 00:04:00 +01:00
|
|
|
# URL: https://www.zsh.org/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2024-05-13 17:21:02 +02:00
|
|
|
# Depends on: libpcre2
|
2006-04-06 19:26:00 +02:00
|
|
|
|
|
|
|
name=zsh
|
2022-05-16 21:46:31 +02:00
|
|
|
version=5.9
|
2024-05-13 17:21:02 +02:00
|
|
|
release=3
|
2022-05-16 21:46:31 +02:00
|
|
|
source=(https://www.zsh.org/pub/$name-$version.tar.xz
|
2023-02-28 18:08:36 +01:00
|
|
|
_prt-get _pkgadd _pkgmk _pkginfo _pkgrm _rejmerge
|
2024-05-13 17:21:02 +02:00
|
|
|
0002-fix-autocompletion.patch
|
|
|
|
0004-pcre2.patch
|
2023-02-28 18:08:36 +01:00
|
|
|
zsh-lovers.1)
|
2006-04-06 19:26:00 +02:00
|
|
|
|
|
|
|
build() {
|
2021-01-29 00:04:00 +01:00
|
|
|
cd $name-$version
|
|
|
|
|
2024-05-13 17:21:02 +02:00
|
|
|
patch -Np1 -i $SRC/0002-fix-autocompletion.patch
|
|
|
|
patch -Np1 -i $SRC/0004-pcre2.patch
|
|
|
|
|
2021-01-29 00:04:00 +01:00
|
|
|
# fix paths https://crux.nu/bugs/index.php?getfile=539
|
|
|
|
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/usb.ids#g' Completion/Linux/Command/_lsusb
|
|
|
|
|
2023-02-28 18:08:36 +01:00
|
|
|
sed -e 's|^\.NOTPARALLEL|#.NOTPARALLEL|' -i 'Config/defs.mk.in'
|
2021-01-29 00:04:00 +01:00
|
|
|
|
|
|
|
for _fpath in AIX 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}
|
|
|
|
|
2023-02-28 18:08:36 +01:00
|
|
|
rm Doc/version.yo
|
|
|
|
|
2024-05-13 17:21:02 +02:00
|
|
|
autoreconf -fi
|
|
|
|
|
2021-01-29 00:04:00 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-etcdir=/etc/zsh \
|
|
|
|
--enable-zshrc=/etc/zsh/zshrc \
|
|
|
|
--enable-zlogin=/etc/zsh/zshlogin \
|
|
|
|
--enable-zlogout=/etc/zsh/zshlogout \
|
|
|
|
--enable-zshenv=/etc/zsh/zshenv \
|
|
|
|
--enable-zprofile=/etc/zsh/zprofile \
|
|
|
|
--enable-fndir=/usr/share/zsh/$version/functions \
|
|
|
|
--enable-site-fndir=/usr/share/zsh/site-functions \
|
|
|
|
--enable-maildir-support \
|
|
|
|
--with-term-lib='ncursesw' \
|
|
|
|
--with-tcsetpgrp \
|
|
|
|
--enable-function-subdirs \
|
|
|
|
--enable-pcre \
|
|
|
|
--enable-restricted-r \
|
|
|
|
--enable-cap \
|
|
|
|
--enable-multibyte \
|
|
|
|
--enable-zsh-secure-free
|
|
|
|
|
2023-02-28 18:08:36 +01:00
|
|
|
make -C Src headers
|
|
|
|
make -C Src -f Makemod zsh{path,xmod}s.h version.h
|
|
|
|
make all
|
2021-01-29 00:04:00 +01:00
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
install -m 644 $SRC/zsh-lovers.1 $PKG/usr/share/man/man1/
|
|
|
|
|
|
|
|
rm $PKG/usr/share/man/man1/zshall.1
|
|
|
|
cat $PKG/usr/share/man/man1/* > $PKG/usr/share/man/man1/zshall.1
|
|
|
|
|
|
|
|
# These completion files break things for CRUX' pkgutils,
|
|
|
|
# so remove them for now (see bug #381).
|
|
|
|
rm $PKG/usr/share/zsh/$version/functions/Completion/Unix/_pkg{add,rm,info}
|
|
|
|
|
|
|
|
install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_prt-get
|
2023-02-28 18:08:36 +01:00
|
|
|
install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_pkgadd
|
|
|
|
install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_pkgmk
|
|
|
|
install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_pkginfo
|
|
|
|
install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_pkgrm
|
|
|
|
install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_rejmerge
|
2006-04-06 19:26:00 +02:00
|
|
|
}
|