7zip: restore alternative from 7z

Close #41209
This commit is contained in:
Đoàn Trần Công Danh 2022-12-21 08:58:53 +07:00
parent e98b32628e
commit 893af2dd60
2 changed files with 9 additions and 1 deletions

8
srcpkgs/7zip/p7zip.INSTALL Executable file
View file

@ -0,0 +1,8 @@
# https://github.com/void-linux/void-packages/issues/41209
# When p7zip is updated from 16.02 or earlier,
# /usr/bin/7z symlink will be lost because
# - 7zip installed first -> alternatives system will `ln -s 7zip usr/bin/7z'
# - p7zip upgrade will remove its old files, aka `rm -f usr/bin/7z
if [ ! -L usr/bin/7z ]; then
xbps-alternatives -r "$PWD" -s 7zip
fi

View file

@ -1,7 +1,7 @@
# Template file for '7zip'
pkgname=7zip
version=22.01
revision=1
revision=2
short_desc="File archiver with a high compression ratio"
maintainer="Roberto Ricci <ricci@disroot.org>"
license="LGPL-2.1-or-later, BSD-3-Clause"