Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
ebe78d28
Commit
ebe78d28
authored
Oct 24, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add prescription for vivaldi
parent
1dd9e4d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
vivaldi.sh
prescription.d/vivaldi.sh
+54
-0
No files found.
prescription.d/vivaldi.sh
0 → 100755
View file @
ebe78d28
#!/bin/sh
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Vivaldi browser from the official site"
&&
exit
# TODO: use --debian-arch?
# convert to debian notation
case
"
$(
distro_info
-a
)
"
in
x86_64
)
arch
=
amd64
;;
x86
)
arch
=
i386
;;
armhf
)
arch
=
armhf
;;
*
)
fatal
"
$(
distro_info
-a
)
arch is not supported"
;;
esac
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vivaldi
# TODO:
# 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/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
install
"https://repo.vivaldi.com/archive/deb/pool/main/vivaldi-stable_*_
$arch
.deb"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment