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
+18 -1
View File
@@ -4,13 +4,23 @@ pkgdesc="A very advanced and programmable command interpreter (shell) for UNIX"
homepage="https://www.zsh.org/" homepage="https://www.zsh.org/"
license=("custom") license=("custom")
sources=("${pkgname}-${pkgver}.tar.xz") 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") md5sums=("182e37ca3fe3fa6a44f69ad462c5c30e")
src_prepare() { src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1 tar -xf ${distdir}/${sources[0]} --strip-components=1
sed -e 's/set_from_init_file/texinfo_&/' -i Doc/Makefile.in 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/*.* sed 's|/etc/z|/etc/zsh/z|g' -i Doc/*.*
} }
@@ -40,3 +50,10 @@ src_install(){
make DESTDIR="${pkgdir}/" htmldir="/usr/share/doc/zsh-5.9/html" install.html && 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" 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
}