update: app-shells/zsh-5.9 fix with 12.4

This commit is contained in:
2025-12-25 05:47:36 -05:00
parent 5410fc58a7
commit a606f6a43f

View File

@@ -4,25 +4,35 @@ pkgdesc="A very advanced and programmable command interpreter (shell) for UNIX"
homepage="https://www.zsh.org/"
license=("custom")
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://www.zsh.org/pub/zsh-5.9.tar.xz")
#urls=("https://www.zsh.org/pub/${sources[0]}")
urls=("https://downloads.sourceforge.net/project/zsh/zsh/${pkgver}/${sources[0]}")
md5sums=("182e37ca3fe3fa6a44f69ad462c5c30e")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
sed -e 's/set_from_init_file/texinfo_&/' -i Doc/Makefile.in
sed -e 's/^main/int &/' \
-e 's/exit(/return(/' \
-i aczsh.m4 configure.ac &&
sed -e 's/test = /&(char**)/' \
-i configure.ac &&
autoconf
sed 's|/etc/z|/etc/zsh/z|g' -i Doc/*.*
}
src_build() {
./configure --prefix=/usr \
--sysconfdir=/etc/zsh \
--enable-etcdir=/etc/zsh \
--enable-cap \
--enable-gdbm \
--with-term-lib='ncursesw' \
--enable-multibyte &&
make &&
./configure --prefix=/usr \
--sysconfdir=/etc/zsh \
--enable-etcdir=/etc/zsh \
--enable-cap \
--enable-gdbm \
--with-term-lib='ncursesw' \
--enable-multibyte &&
make &&
makeinfo Doc/zsh.texi --html -o Doc/html&&
makeinfo Doc/zsh.texi --plaintext -o zsh.txt &&
@@ -40,3 +50,10 @@ src_install(){
make DESTDIR="${pkgdir}/" htmldir="/usr/share/doc/zsh-5.9/html" install.html &&
install -v -m644 zsh.{html,txt} Etc/FAQ "${pkgdir}/usr/share/doc/zsh-5.9"
}
src_postinstall() {
leaf_add_shell /bin/zsh
}
src_postremove() {
leaf_remove_shell /bin/zsh
}