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
Nurlan
eepm
Commits
16237ae8
Commit
16237ae8
authored
Mar 24, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pack yandex-browser-stable (ALT bug 42238)
parent
ba4a316f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
21 deletions
+42
-21
yandex-browser.sh
play.d/yandex-browser.sh
+11
-21
yandex-browser-beta.sh
repack.d/yandex-browser-beta.sh
+1
-0
yandex-browser-stable.sh
repack.d/yandex-browser-stable.sh
+30
-0
No files found.
play.d/yandex-browser.sh
View file @
16237ae8
#!/bin/sh
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
yandex-browser-beta
PKGNAME
=
yandex-browser-stable
PRODUCTDIR
=
/opt/yandex/browser
DESCRIPTION
=
"Yandex browser from the official site"
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
epm remove
$PKGNAME
-codecs-ffmpeg-extra
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Yandex browser from the official site"
&&
exit
.
$(
dirname
$0
)
/common.sh
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
# See also https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yandex-browser-beta
# epm uses eget to download * names
epm
install
"https://repo.yandex.ru/yandex-browser/deb/pool/main/y/
yandex-browser-beta/
$(
epm print constructname
$PKGNAME
"*"
amd64 deb
)
"
epm
install
"https://repo.yandex.ru/yandex-browser/deb/pool/main/y/
$PKGNAME
/
$(
epm print constructname
$PKGNAME
"*"
amd64 deb
)
"
||
exit
# used in update-ffmpeg
epm
install
jq
tar
binutils
epm
install
jq
tar
binutils
||
exit
# install appropriate ffmpeg extra codecs
pack_ffmpeg
()
{
SOURCE
=
"usr/lib/chromium-browser/libffmpeg.so"
DEST
=
"
/opt/yandex/browser-beta
"
DEST
=
"
$PRODUCTDIR
"
mkdir
-p
.
$DEST
cp
$SOURCE
.
$DEST
CNAME
=
$(
echo
"
$(
basename
$SUITABLE_URLS
)
"
|
sed
-e
"s|chromium|
$PKGNAME
|"
-e
"s|-0ubuntu.*|-1.tar|"
)
...
...
@@ -37,15 +33,9 @@ pack_ffmpeg() {
epm
--repack
install
$CNAME
}
[
-s
/opt/yandex/browser-beta/update-ffmpeg
]
||
fatal
"/opt/yandex/browser-beta/update-ffmpeg is missed"
# download ffmpeg with upstream script but with our pack_ffmpeg function
[
-s
$PRODUCTDIR
/update-ffmpeg
]
||
fatal
"
$PRODUCTDIR
/update-ffmpeg is missed"
SC
=
$(
mktemp
)
sed
-e
's|install_ffmpeg &&|pack_ffmpeg &&|'
<
/opt/yandex/browser-beta
/update-ffmpeg
>
$SC
sed
-e
's|install_ffmpeg &&|pack_ffmpeg &&|'
<
$PRODUCTDIR
/update-ffmpeg
>
$SC
.
$SC
rm
-f
$SC
#echo
#echo '
#You can run
# # /opt/yandex/browser-beta/update-ffmpeg
#to download and install libffmpeg.so with proprietary codecs from chromium-codecs-ffmpeg-extra package
#'
repack.d/yandex-browser-beta.sh
View file @
16237ae8
...
...
@@ -8,6 +8,7 @@ PRODUCT=yandex-browser
PRODUCTCUR
=
yandex-browser-beta
PRODUCTDIR
=
/opt/yandex/browser-beta
subst
'1iConflicts:yandex-browser-stable'
$SPEC
.
$(
dirname
$0
)
/common-chromium-browser.sh
...
...
repack.d/yandex-browser-stable.sh
0 → 100755
View file @
16237ae8
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
yandex-browser
PRODUCTCUR
=
yandex-browser-stable
PRODUCTDIR
=
/opt/yandex/browser
subst
'1iConflicts:yandex-browser-beta'
$SPEC
.
$(
dirname
$0
)
/common-chromium-browser.sh
set_alt_alternatives 65
copy_icons_to_share
cleanup
add_bin_commands
use_system_xdg
install_deps
#if ! grep -q '^"/usr/bin/yandex-browser"' $SPEC ; then
# subst 's|\(.*/usr/bin/yandex-browser.*\)|"/usr/bin/yandex-browser"\n\1|' $SPEC
#fi
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