Commit a8fe0722 authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve vivaldi prescription

parent ebe78d28
...@@ -9,46 +9,21 @@ fatal() ...@@ -9,46 +9,21 @@ fatal()
[ "$1" != "--run" ] && echo "Install Vivaldi browser from the official site" && exit [ "$1" != "--run" ] && echo "Install Vivaldi browser from the official site" && exit
# TODO: use --debian-arch? arch="$(distro_info --debian-arch)"
# convert to debian notation case "$arch" in
case "$(distro_info -a)" in amd64|i386|armhf)
x86_64)
arch=amd64
;;
x86)
arch=i386
;;
armhf)
arch=armhf
;; ;;
*) *)
fatal "$(distro_info -a) arch is not supported" fatal "Debian $arch arch is not supported"
;; ;;
esac esac
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vivaldi # See also https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vivaldi
# TODO: # TODO:
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vivaldi-ffmpeg-codecs # https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vivaldi-ffmpeg-codecs
# return delimiter sign in depend of package type
get_pkg_name_delimiter()
{
local pkgtype="$1"
[ -n "$pkgtype" ] && pkgtype="$($DISTRVENDOR -p)"
[ "$pkgtype" = "deb" ] && echo "_" && return
echo "-"
}
# https://repo.vivaldi.com/archive/rpm/x86_64/ # https://repo.vivaldi.com/archive/rpm/x86_64/
# https://repo.vivaldi.com/archive/rpm/x86_64/vivaldi-stable-3.4.2066.86-1.x86_64.rpm
# https://repo.vivaldi.com/archive/rpm/i386/vivaldi-stable-3.4.2066.86-1.i386.rpm
# https://repo.vivaldi.com/archive/deb/pool/main/
#ds=$(get_pkg_name_delimiter)
#epm install "https://downloads.vivaldi.com/stable/vivaldi-stable$ds${_rpmversion}${ds/-/./}$arch.$(distro_info -p)"
# epm uses eget to download * names # epm uses eget to download * names
epm install "https://repo.vivaldi.com/archive/deb/pool/main/vivaldi-stable_*_$arch.deb" epm --noscripts install "https://repo.vivaldi.com/archive/deb/pool/main/$(epm print constructname vivaldi-stable "*" $arch deb)"
...@@ -14,3 +14,7 @@ done ...@@ -14,3 +14,7 @@ done
rm -f $BUILDROOT/etc/cron.daily/$PRODUCT rm -f $BUILDROOT/etc/cron.daily/$PRODUCT
subst "s|.*/etc/cron.daily/$PRODUCT.*||" $SPEC subst "s|.*/etc/cron.daily/$PRODUCT.*||" $SPEC
subst "1i%filter_from_requires /.opt.google.chrome.WidevineCdm/d" $SPEC
echo "You also can install chrome via epm play chrome to use WidevineCdm"
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