|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
inherit desktop unpacker xdg
|
|
|
|
|
inherit unpacker xdg
|
|
|
|
|
|
|
|
|
|
DESCRIPTION="Kontur.Talk"
|
|
|
|
|
HOMEPAGE="https://ktalk.ru"
|
|
|
|
@ -38,8 +38,9 @@ pkg_postinst() {
|
|
|
|
|
|
|
|
|
|
if type update-alternatives 2>/dev/null >&1; then
|
|
|
|
|
# Remove previous link if it doesn't use update-alternatives
|
|
|
|
|
if [ -L '/usr/bin/ktalk' -a -e '/usr/bin/ktalk' -a "`readlink '/usr/bin/ktalk'`" != '/etc/alternatives/ktalk' ]; then
|
|
|
|
|
rm -f '/usr/bin/ktalk'
|
|
|
|
|
if [ -L '/usr/bin/ktalk' -a -e '/usr/bin/ktalk' -a "`readlink '/usr/bin/ktalk'`" \
|
|
|
|
|
!= '/etc/alternatives/ktalk' ]; then
|
|
|
|
|
rm -f '/usr/bin/ktalk'
|
|
|
|
|
fi
|
|
|
|
|
update-alternatives --install '/usr/bin/ktalk' 'ktalk' '/opt/Толк/ktalk' 100
|
|
|
|
|
else
|