Commit 641e97fa authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add install chrome-remote-desktop

parent 56c26dce
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=chrome-remote-desktop
if [ "$1" = "--remove" ] ; then
epm remove chrome-remote-desktop
exit
fi
[ "$1" != "--run" ] && echo "Install Remote desktop support for google-chrome & chromium" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
#arch=$($DISTRVENDOR --distro-arch)
#pkgtype=$($DISTRVENDOR -p)
repack=''
arch=amd64
pkgtype=deb
# we have workaround for their postinstall script, so always repack rpm package
[ "$($DISTRVENDOR -p)" = "deb" ] || repack='--repack'
PKG="https://dl.google.com/linux/direct/${PKGNAME}_current_$arch.$pkgtype"
epm install $repack "$PKG" || exit
echo '
You need run
# serv chrome-remote-desktop on
to enable the service'
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PKGNAME=chrome-remote-desktop
rm -f $BUILDROOT/etc/cron.daily/$PKGNAME
subst 's|.*/etc/cron.daily/$PKGNAME.*||' $SPEC
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