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
5e670812
Commit
5e670812
authored
Mar 19, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move yandex-browser-codecs to epm repack using
parent
e8c19613
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
35 deletions
+52
-35
yandex-browser-beta-codecs-ffmpeg-extra.sh
pack.d/yandex-browser-beta-codecs-ffmpeg-extra.sh
+2
-0
yandex-browser-stable-codecs-ffmpeg-extra.sh
pack.d/yandex-browser-stable-codecs-ffmpeg-extra.sh
+45
-0
yandex-browser-codecs-ffmpeg-extra.sh
play.d/yandex-browser-codecs-ffmpeg-extra.sh
+5
-33
yandex-browser.sh
play.d/yandex-browser.sh
+0
-2
No files found.
pack.d/yandex-browser-beta-codecs-ffmpeg-extra.sh
0 → 120000
View file @
5e670812
yandex-browser-stable-codecs-ffmpeg-extra.sh
\ No newline at end of file
pack.d/yandex-browser-stable-codecs-ffmpeg-extra.sh
0 → 100755
View file @
5e670812
#!/bin/sh -x
UPDATEFFMPEG
=
"
$1
"
RETURNTARNAME
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
CURDIR
=
$(
pwd
)
PRODUCTDIR
=
"
$(
dirname
$UPDATEFFMPEG
)
"
BASEPKGNAME
=
yandex-browser-stable
PKGNAME
=
$(
basename
$0
.sh
)
if
echo
"
$PKGNAME
"
|
grep
-q
"yandex-browser-beta"
;
then
BASEPKGNAME
=
yandex-browser-beta
fi
# used in update-ffmpeg
epm
install
--skip-installed
jq
tar
binutils
||
exit
# install ffmpeg extra codecs
pack_ffmpeg
()
{
SOURCE
=
"usr/lib/chromium-browser/libffmpeg.so"
DEST
=
"
$PRODUCTDIR
"
mkdir
-p
.
$DEST
cp
$SOURCE
.
$DEST
CNAME
=
"
$CURDIR
/
$(
echo
"
$(
basename
$SUITABLE_URLS
)
"
|
sed
-e
"s|chromium|
$BASEPKGNAME
|"
-e
"s|-[0-9]*ubuntu.*|-1.tar|"
)
"
#"
a
=
''
tar
cf
$CNAME
.
$(
dirname
$DEST
)
return_tar
$CNAME
# exit from update-ffmpeg script here
exit
}
URL
=
"https://browser-resources.s3.yandex.net/linux/codecs.json"
update_url_if_need_mirrored
# download ffmpeg with upstream script update-ffmpeg but with our pack_ffmpeg function
[
-x
$UPDATEFFMPEG
]
||
fatal
"
$UPDATEFFMPEG
is missed"
SC
=
$(
mktemp
)
trap
"rm -f
$SC
"
EXIT
sed
-e
's|install_ffmpeg &&|pack_ffmpeg \&\&|'
\
-e
's|wget -q-O|epm tool eget -q -O|'
\
-e
's|wget -O|epm tool eget -O |'
\
-e
"s|CODECS_JSON_URL='https://browser-resources.s3.yandex.net/linux/codecs.json'|CODECS_JSON_URL='
$URL
'|"
<
$UPDATEFFMPEG
>
$SC
.
$SC
play.d/yandex-browser-codecs-ffmpeg-extra.sh
View file @
5e670812
#!/bin/sh
BRANCH
=
stable
PRODUCT
DIR
=
/opt/yandex/browser
SUPPORTEDARCHES
=
"x86_64"
PRODUCT
ALT
=
"stable beta"
DESCRIPTION
=
''
BRANCH
=
stable
if
[
"
$2
"
=
"beta"
]
||
epm installed yandex-browser-beta-codecs-ffmpeg-extra
;
then
BRANCH
=
beta
PRODUCTDIR
=
/opt/yandex/browser-
$BRANCH
fi
PRODUCTALT
=
"stable beta"
BASEPKGNAME
=
yandex-browser-
$BRANCH
PKGNAME
=
yandex-browser-
$BRANCH
-codecs-ffmpeg-extra
SUPPORTEDARCHES
=
"x86_64"
PKGNAME
=
$BASEPKGNAME
-codecs-ffmpeg-extra
.
$(
dirname
$0
)
/common.sh
# used in update-ffmpeg
epm
install
--skip-installed
jq
tar
binutils
||
exit
# install ffmpeg extra codecs
pack_ffmpeg
()
{
SOURCE
=
"usr/lib/chromium-browser/libffmpeg.so"
DEST
=
"
$PRODUCTDIR
"
mkdir
-p
.
$DEST
cp
$SOURCE
.
$DEST
CNAME
=
"
$(
echo
"
$(
basename
$SUITABLE_URLS
)
"
|
sed
-e
"s|chromium|
$BASEPKGNAME
|"
-e
"s|-[0-9]*ubuntu.*|-1.tar|"
)
"
#"
a
=
''
tar
cf
$CNAME
.
$(
dirname
$DEST
)
epm
--repack
install
$CNAME
# exit from update-ffmpeg script here
exit
}
URL
=
"https://browser-resources.s3.yandex.net/linux/codecs.json"
update_url_if_need_mirrored
# download ffmpeg with upstream script update-ffmpeg but with our pack_ffmpeg function
[
-s
$PRODUCTDIR
/update-ffmpeg
]
||
fatal
"
$PRODUCTDIR
/update-ffmpeg is missed"
SC
=
$(
mktemp
)
trap
"rm -f
$SC
"
EXIT
sed
-e
's|install_ffmpeg &&|pack_ffmpeg \&\&|'
\
-e
's|wget -q-O|epm tool eget -q -O-|'
\
-e
"s|CODECS_JSON_URL='https://browser-resources.s3.yandex.net/linux/codecs.json'|CODECS_JSON_URL='
$URL
'|"
<
$PRODUCTDIR
/update-ffmpeg
>
$SC
.
$SC
epm pack
--install
$PKGNAME
play.d/yandex-browser.sh
View file @
5e670812
#!/bin/sh
PRODUCTDIR
=
/opt/yandex/browser
DESCRIPTION
=
"Yandex browser from the official site"
TIPS
=
"Run 'epm play yandex-browser beta' to install beta version of the browser."
...
...
@@ -8,7 +7,6 @@ PRODUCTALT="stable beta"
BRANCH
=
stable
if
[
"
$2
"
=
"beta"
]
||
epm installed yandex-browser-beta
;
then
BRANCH
=
beta
PRODUCTDIR
=
/opt/yandex/browser-
$BRANCH
fi
PKGNAME
=
yandex-browser-
$BRANCH
...
...
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