Update package version to 5.9.1

This commit is contained in:
2026-06-07 16:32:29 +03:00
parent 3e265e0603
commit ac94da025d
3 changed files with 44 additions and 64 deletions
+39 -12
View File
@@ -6,20 +6,49 @@
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/avoid-incompatible-pointer-types.patch
# Change config location in documentation to /etc/zsh
sed 's|/etc/z|/etc/zsh/z|g' -i Doc/*.*
# Set correct keymap path
sed -i 's#/usr/share/keymaps#/usr/share/kbd/keymaps#g' Completion/Unix/Command/_loadkeys
# Fix usb.ids path
sed -i 's#/usr/share/misc/usb.ids#/usr/share/hwdata/usb.ids#g' Completion/Linux/Command/_lsusb
# Remove unneeded and conflicting completion scripts
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
rm Completion/Linux/Command/_pkgtool
# Force generation of documentation with correct paths
rm Doc/version.yo
autoreconf -fi
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
sed -e 's/set_from_init_file/texinfo_&/' -i Doc/Makefile.in
sed 's|/etc/z|/etc/zsh/z|g' -i Doc/*.*
./configure --prefix=/usr --sysconfdir=/etc/zsh --enable-etcdir=/etc/zsh --enable-cap --enable-gdbm
make
makeinfo Doc/zsh.texi --html -o Doc/html
makeinfo Doc/zsh.texi --plaintext -o zsh.txt
makeinfo Doc/zsh.texi --html --no-split --no-headers -o zsh.html
./configure --prefix=/usr \
--sysconfdir=/etc/zsh \
--docdir=/usr/share/doc/zsh \
--htmldir=/usr/share/doc/zsh/html \
--enable-etcdir=/etc/zsh \
--enable-zshenv=/etc/zsh/zshenv \
--enable-zlogin=/etc/zsh/zlogin \
--enable-zlogout=/etc/zsh/zlogout \
--enable-zprofile=/etc/zsh/zprofile \
--enable-zshrc=/etc/zsh/zshrc \
--enable-maildir-support \
--enable-multibyte \
--enable-function-subdirs \
--enable-fndir=/usr/share/zsh/functions \
--enable-scriptdir=/usr/share/zsh/scripts \
--with-tcsetpgrp \
--enable-pcre \
--enable-gdbm \
--enable-cap \
--enable-zsh-secure-free
make
}
# The check function is executed in the source directory
@@ -34,9 +63,7 @@ package() {
make DESTDIR="$BPM_OUTPUT" install
# Install package documentation
make DESTDIR="$BPM_OUTPUT" infodir=/usr/share/info install.info
make DESTDIR="$BPM_OUTPUT" htmldir=/usr/share/doc/zsh/html install.html
install -m644 zsh.{html,txt} Etc/FAQ -t "$BPM_OUTPUT"/usr/share/doc/zsh
make DESTDIR="$BPM_OUTPUT" install.info install.html
# Install default zsh config files
install -d "$BPM_OUTPUT"/etc/zsh
@@ -44,5 +71,5 @@ package() {
install -m644 "$BPM_WORKDIR"/zshrc "$BPM_OUTPUT"/etc/zsh/zshrc
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENCE "$BPM_OUTPUT"/usr/share/licenses/zsh/COPYING
install -Dm644 "$BPM_SOURCE"/LICENCE "$BPM_OUTPUT"/usr/share/licenses/zsh/LICENCE
}