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
dc80c339
Commit
dc80c339
authored
Mar 20, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play chromium-codecs-ffmpeg-extra: implement via epm pack
parent
a5878c31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
27 deletions
+43
-27
chromium-codecs-ffmpeg-extra.sh
pack.d/chromium-codecs-ffmpeg-extra.sh
+38
-0
chromium-codecs-ffmpeg-extra.sh
play.d/chromium-codecs-ffmpeg-extra.sh
+5
-27
No files found.
pack.d/chromium-codecs-ffmpeg-extra.sh
0 → 100755
View file @
dc80c339
#!/bin/sh -x
FFMPEGDEB
=
"
$1
"
RETURNTARNAME
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
[
-s
"
$FFMPEGDEB
"
]
||
fatal
"
$FFMPEGDEB
is missed"
CURDIR
=
$(
pwd
)
# TODO: set via args?
PRODUCTDIR
=
/opt/chromium-browser
PKGNAME
=
chromium-codecs-ffmpeg-extra
BASEPKGNAME
=
"chromium"
# used in update-ffmpeg
epm
install
--skip-installed
tar
binutils
||
exit
# install ffmpeg extra codecs
pack_ffmpeg
()
{
SOURCE
=
"usr/lib/chromium-browser/libffmpeg.so"
DEST
=
"
$PRODUCTDIR
"
mkdir
-p
.
$DEST
cp
$SOURCE
.
$DEST
/libffmpeg.so
CNAME
=
"
$CURDIR
/
$(
echo
"
$(
basename
$FFMPEGDEB
)
"
|
sed
-e
"s|chromium|
$BASEPKGNAME
|"
-e
"s|-0ubuntu.*|-1.tar|"
)
"
#"
a
=
''
tar
cf
$CNAME
.
$(
dirname
$DEST
)
return_tar
$CNAME
exit
}
DDIR
=
$(
mktemp
-d
)
trap
"rm -fr
$DDIR
"
EXIT
cd
$DDIR
||
fatal
# direct unpack deb
a
=
''
ar
-x
$FFMPEGDEB
a
=
''
tar
xf
"data.tar.xz"
pack_ffmpeg
play.d/chromium-codecs-ffmpeg-extra.sh
View file @
dc80c339
#!/bin/sh
#!/bin/sh
BRANCH
=
stable
PRODUCTDIR
=
/opt/chromium-browser
DESCRIPTION
=
''
DESCRIPTION
=
''
BASEPKGNAME
=
chromium
PKGNAME
=
chromium-codecs-ffmpeg-extra
PKGNAME
=
chromium-
$BRANCH
-codecs-ffmpeg-extra
SUPPORTEDARCHES
=
"x86_64"
SUPPORTEDARCHES
=
"x86_64"
BASEPKGNAME
=
chromium
.
$(
dirname
$0
)
/common.sh
# copied from /opt/vivaldi/update-ffmpeg
# copied from /opt/vivaldi/update-ffmpeg
FFMPEG_VERSION_DEB
=
103.0.5060.134-0ubuntu0.18.04.1
# Internal FFMpeg version = 107578
FFMPEG_VERSION_DEB
=
103.0.5060.134-0ubuntu0.18.04.1
# Internal FFMpeg version = 107578
FFMPEG_URL_DEB
=
https://launchpadlibrarian.net/613925272/chromium-codecs-ffmpeg-extra_
${
FFMPEG_VERSION_DEB
}
_amd64.deb
FFMPEG_URL_DEB
=
https://launchpadlibrarian.net/613925272/chromium-codecs-ffmpeg-extra_
${
FFMPEG_VERSION_DEB
}
_amd64.deb
.
$(
dirname
$0
)
/common.sh
epm pack
--install
chromium-codecs-ffmpeg-extra
$FFMPEG_URL_DEB
epm
install
--skip-installed
tar
binutils
||
exit
epm assure
awk
gawk
||
exit
# install ffmpeg extra codecs
pack_ffmpeg
()
{
SOURCE
=
"usr/lib/chromium-browser/libffmpeg.so"
DEST
=
"
$PRODUCTDIR
"
mkdir
-p
.
$DEST
cp
$SOURCE
.
$DEST
/libffmpeg.so
CNAME
=
"
$(
echo
"
$(
basename
$FFMPEG_URL_DEB
)
"
|
sed
-e
"s|chromium|
$BASEPKGNAME
|"
-e
"s|-0ubuntu.*|-1.tar|"
)
"
#"
a
=
''
tar
cf
$CNAME
.
$(
dirname
$DEST
)
epm
--repack
install
$CNAME
}
DDIR
=
$(
mktemp
-d
)
trap
"rm -fr
$DDIR
"
EXIT
cd
$DDIR
||
fatal
epm tool eget
$FFMPEG_URL_DEB
||
fatal
a
=
''
ar
-x
*
.deb
a
=
''
tar
xf
"data.tar.xz"
pack_ffmpeg
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