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
32396b6a
Commit
32396b6a
authored
Mar 28, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: refactor yandex-browser-codecs packing
parent
a91a2083
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
20 deletions
+61
-20
yandex-browser-codecs-ffmpeg-extra.sh
play.d/yandex-browser-codecs-ffmpeg-extra.sh
+41
-0
yandex-browser.sh
play.d/yandex-browser.sh
+2
-20
yandex-browser-beta-codecs-ffmpeg-extra.sh
repack.d/yandex-browser-beta-codecs-ffmpeg-extra.sh
+9
-0
yandex-browser-stable-codecs-ffmpeg-extra.sh
repack.d/yandex-browser-stable-codecs-ffmpeg-extra.sh
+9
-0
No files found.
play.d/yandex-browser-codecs-ffmpeg-extra.sh
0 → 100755
View file @
32396b6a
#!/bin/sh
BRANCH
=
stable
PRODUCTDIR
=
/opt/yandex/browser
DESCRIPTION
=
''
if
[
"
$2
"
=
"beta"
]
;
then
BRANCH
=
beta
PRODUCTDIR
=
/opt/yandex/browser-
$BRANCH
fi
BASEPKGNAME
=
yandex-browser-
$BRANCH
PKGNAME
=
yandex-browser-
$BRANCH
-codecs-ffmpeg-extra
.
$(
dirname
$0
)
/common.sh
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
# 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|-0ubuntu.*|-1.tar|"
)
"
#"
a
=
''
tar
cf
$CNAME
.
$(
dirname
$DEST
)
epm
--repack
install
$CNAME
# exit from update-ffmpeg script here
exit
}
# 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
)
sed
-e
's|install_ffmpeg &&|pack_ffmpeg \&\&|'
<
$PRODUCTDIR
/update-ffmpeg
>
$SC
.
$SC
rm
-f
$SC
play.d/yandex-browser.sh
View file @
32396b6a
#!/bin/sh
BRANCH
=
stable
PKGNAME
=
yandex-browser-stable
PRODUCTDIR
=
/opt/yandex/browser
DESCRIPTION
=
"Yandex browser from the official site"
...
...
@@ -19,23 +20,4 @@ fi
# epm uses eget to download * names
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
--skip-installed
jq
tar
binutils
||
exit
# install appropriate 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|
$PKGNAME
|"
-e
"s|-0ubuntu.*|-1.tar|"
)
a
=
''
tar
cvf
$CNAME
./
$(
dirname
$DEST
)
epm
--repack
install
$CNAME
}
# 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 &&|'
<
$PRODUCTDIR
/update-ffmpeg
>
$SC
.
$SC
rm
-f
$SC
epm play yandex-browser-codecs-ffmpeg-extra
$BRANCH
repack.d/yandex-browser-beta-codecs-ffmpeg-extra.sh
0 → 100755
View file @
32396b6a
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
yandex-browser-stable-codecs-ffmpeg-extra
subst
'1iRequires:yandex-browser-beta'
$SPEC
repack.d/yandex-browser-stable-codecs-ffmpeg-extra.sh
0 → 100755
View file @
32396b6a
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
yandex-browser-stable-codecs-ffmpeg-extra
subst
'1iRequires:yandex-browser-stable'
$SPEC
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