Commit cd146b42 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add prescriptions for chrome, chromium-gost, skype

parent e495e451
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
[ "$1" != "--run" ] && echo "Install The popular and trusted web browser by Google (Stable Channel) from the official site" && exit
[ "$(distro_info -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
arch=$(distro_info --distro-arch)
pkgtype=$(distro_info -p)
# don't used
complex_get()
{
epm assure curl || fatal
# see https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=google-chrome
_channel=stable
pkgver=$(a= curl -s https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | gzip -df | grep -A1 google-chrome-stable | tail -n1 | sed -e 's|.* ver="\(.*\)" .*|\1|')
pkgtype=deb
PKG="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-${_channel}/google-chrome-${_channel}_${pkgver}-1_amd64.deb"
}
PKG="https://dl.google.com/linux/direct/google-chrome-stable_current_$arch.$pkgtype"
epm install --repack "$PKG"
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
[ "$1" != "--run" ] && echo "Install Chromium with GOST support from the official site" && exit
[ "$(distro_info -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
#arch=$(distro_info --distro-arch)
#pkgtype=$(distro_info -p)
arch=amd64
pkgtype=deb
PKG=$($EGET --list --latest https://github.com/deemru/chromium-gost/releases "chromium-gost-*linux-$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKG"
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
[ "$1" != "--run" ] && echo "Install Skype for Linux - Stable/Release Version from the official site" && exit
[ "$(distro_info -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
#arch=$(distro_info --distro-arch)
pkgtype=$(distro_info -p)
# don't used
complex_get()
{
pkgtype=deb
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=skypeforlinux-stable-bin
_pkgname=skypeforlinux
pkgver=8.65.0.78
PKG= "https://repo.skype.com/deb/pool/main/s/${_pkgname}/${_pkgname}_${pkgver}_amd64.deb"
}
PKG="https://repo.skype.com/latest/skypeforlinux-64.$pkgtype"
epm install --repack "$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