void-packages/srcpkgs/7zip/p7zip.INSTALL

9 lines
362 B
Plaintext
Executable File

# 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