Commit eea0fc4f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add assistant, myoffice, r7-office to pkgallowscripts.list to use --scripts by default

parent 40ce7026
...@@ -2,4 +2,7 @@ ...@@ -2,4 +2,7 @@
# Packages with this names epm will install with scripts by default # Packages with this names epm will install with scripts by default
myoffice-* myoffice-*
r7-office
cprocsp-* cprocsp-*
# vendor: SAFIB
assistant
...@@ -4,11 +4,8 @@ PKGNAME=assistant ...@@ -4,11 +4,8 @@ PKGNAME=assistant
SUPPORTEDARCHES="x86_64 aarch64" SUPPORTEDARCHES="x86_64 aarch64"
DESCRIPTION="Assistant (Ассистент) from the official site" DESCRIPTION="Assistant (Ассистент) from the official site"
# Assistant reclaim their rpm package supports ALT
repack="--scripts"
if [ "$1" = "--remove" ] ; then if [ "$1" = "--remove" ] ; then
epm remove $repack $PKGNAME epm remove $PKGNAME
exit exit
fi fi
...@@ -62,14 +59,9 @@ esac ...@@ -62,14 +59,9 @@ esac
# assistant: Требует: /lib/init/vars.sh но пакет не может быть установлен # assistant: Требует: /lib/init/vars.sh но пакет не может быть установлен
# Требует: libyuv.so()(64bit) но пакет не может быть установлен # Требует: libyuv.so()(64bit) но пакет не может быть установлен
#repack=''
#[ "$($DISTRVENDOR -p)" = "deb" ] || repack='--repack'
[ "$($DISTRVENDOR -s)" = "alt" ] && epmi --skip-installed fontconfig-disable-type1-font-for-assistant [ "$($DISTRVENDOR -s)" = "alt" ] && epmi --skip-installed fontconfig-disable-type1-font-for-assistant
LANG=ru_RU.UTF8 epm $repack install "$URL" || exit LANG=ru_RU.UTF8 epm install "$URL" || exit
[ "$repack" = "--scripts" ] && echo "Warning! Privileged scripts from the vendor were running."
# TODO: # TODO:
# after install: # after install:
......
...@@ -5,8 +5,7 @@ SUPPORTEDARCHES="x86_64" ...@@ -5,8 +5,7 @@ SUPPORTEDARCHES="x86_64"
DESCRIPTION="MyOffice Standart Home Edition for Linux from the official site" DESCRIPTION="MyOffice Standart Home Edition for Linux from the official site"
if [ "$1" = "--remove" ] ; then if [ "$1" = "--remove" ] ; then
# Allow scripts: MyOffice reclaims their rpm package supports ALT epm remove $PKGNAME
epm remove --scripts $PKGNAME
exit exit
fi fi
...@@ -24,4 +23,4 @@ PKGMASK="$(epm print constructname $PKGNAME "*" $arch)" ...@@ -24,4 +23,4 @@ PKGMASK="$(epm print constructname $PKGNAME "*" $arch)"
PKG="$(epm tool eget --list --latest https://myoffice.ru/products/standard-home-edition/ $PKGMASK)" || fatal "Can't get package URL" PKG="$(epm tool eget --list --latest https://myoffice.ru/products/standard-home-edition/ $PKGMASK)" || fatal "Can't get package URL"
epm --scripts install "$PKG" epm install "$PKG"
...@@ -6,7 +6,7 @@ DESCRIPTION="R7 Office for Linux from the official site" ...@@ -6,7 +6,7 @@ DESCRIPTION="R7 Office for Linux from the official site"
# remove with scripts (need for remove icons and associations) # remove with scripts (need for remove icons and associations)
if [ "$1" = "--remove" ] ; then if [ "$1" = "--remove" ] ; then
epm remove --scripts $PKGNAME epm remove $PKGNAME
exit exit
fi fi
...@@ -38,4 +38,4 @@ esac ...@@ -38,4 +38,4 @@ esac
# install with scripts (need for install icons and associations) # install with scripts (need for install icons and associations)
# TODO: pack it into the package # TODO: pack it into the package
epm install --scripts "$PKG" epm install "$PKG"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment