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
8433e623
Commit
8433e623
authored
Aug 15, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add opera support
parent
3998d295
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
111 additions
and
0 deletions
+111
-0
chromium-codecs-ffmpeg-extra.sh
play.d/chromium-codecs-ffmpeg-extra.sh
+38
-0
opera.sh
play.d/opera.sh
+22
-0
opera-stable.sh
repack.d/opera-stable.sh
+51
-0
No files found.
play.d/chromium-codecs-ffmpeg-extra.sh
0 → 100755
View file @
8433e623
#!/bin/sh
BRANCH
=
stable
PRODUCTDIR
=
/opt/chromium-browser
DESCRIPTION
=
''
BASEPKGNAME
=
chromium
PKGNAME
=
chromium-
$BRANCH
-codecs-ffmpeg-extra
SUPPORTEDARCHES
=
"x86_64"
# copied from /opt/vivaldi/update-ffmpeg
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
.
$(
dirname
$0
)
/common.sh
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
)
cd
$DDIR
||
fatal
epm tool eget
$FFMPEG_URL_DEB
||
fatal
a
=
''
ar
-x
*
.deb
a
=
''
tar
xf
"data.tar.xz"
pack_ffmpeg
rm
-rf
$DDIR
rm
-f
$SC
play.d/opera.sh
0 → 100755
View file @
8433e623
#!/bin/sh
DESCRIPTION
=
"Opera browser from the official site"
PKGNAME
=
opera-stable
SUPPORTEDARCHES
=
"x86_64"
.
$(
dirname
$0
)
/common.sh
arch
=
"amd64"
epm play chromium-codecs-ffmpeg-extra
||
fatal
# https://get.geo.opera.com/pub/${pkgname}/desktop/${pkgver}/linux/${pkgname}-stable_${pkgver}_amd64.deb
# fast hack for download from CDN
URL
=
"https://download5.operacdn.com/pub/opera/desktop"
check_url_is_accessible
$URL
||
URL
=
"https://download3.operacdn.com/pub/opera/desktop"
check_url_is_accessible
$URL
||
fatal
"Can't access to Opera CDN site
$URL
"
PKGBASEURL
=
"
$(
eget
--list
--latest
$URL
/
*)
"
linux
PKGURL
=
"
$(
epm tool eget
--list
--latest
$PKGBASEURL
"
$(
epm print constructname
$PKGNAME
"*"
$arch
deb
)
"
)
"
||
fatal
epm
install
"
$PKGURL
"
||
fatal
repack.d/opera-stable.sh
0 → 100755
View file @
8433e623
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
opera
PRODUCTCUR
=
opera
PRODUCTDIR
=
/opt/opera
.
$(
dirname
$0
)
/common-chromium-browser.sh
#subst '1iConflicts:vivaldi-snapshot' $SPEC
set_alt_alternatives 65
move_to_opt
"/usr/lib/x86_64-linux-gnu/opera"
cleanup
remove_dir /usr/share/menu
remove_dir /usr/share/lintian
remove_dir /usr/share/mime
remove_dir /usr/lib
remove_file
$PRODUCTDIR
/opera_autoupdate.licenses
remove_file
$PRODUCTDIR
/opera_autoupdate.version
remove_file
$PRODUCTDIR
/opera_autoupdate
cat
<<
EOF
>
$BUILDROOT
/opt/opera/resources/ffmpeg_preload_config.json
[
"/opt/chromium-browser/libffmpeg.so"
]
EOF
# alternative way
#mkdir -p $BUILDROOT$PRODUCTDIR/lib_extra/
#ln -s /opt/chromium-browser/libffmpeg.so $BUILDROOT$PRODUCTDIR/lib_extra/libffmpeg.so
add_bin_commands
fix_chrome_sandbox
$PRODUCTDIR
/opera_sandbox
# fix to support pack links in /usr/bin (may be this is a bug?)
epm assure patchelf
||
exit
for
i
in
$BUILDROOT
/
$PRODUCTDIR
/
$PRODUCT
;
do
a
=
patchelf
--set-rpath
"
$PRODUCTDIR
/lib_extra:
$PRODUCTDIR
"
$i
done
subst
'1iRequires: chromium-codecs-ffmpeg-extra >= 103'
$SPEC
install_deps
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