Commit fcb78296 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play opera: rewrite, fix other systems install

parent dc80c339
...@@ -19,27 +19,16 @@ SUPPORTEDARCHES="x86_64" ...@@ -19,27 +19,16 @@ SUPPORTEDARCHES="x86_64"
arch="amd64" arch="amd64"
epm play chromium-codecs-ffmpeg-extra || fatal # will use libffmpeg.so (via config added in repack)
epm install --skip-installed ffmpeg-plugin-browser || epm install --skip-installed chromium-codecs-ffmpeg-extra || epm play chromium-codecs-ffmpeg-extra
# Stable branch here for deb too
if [ "$BRANCH" = "stable" ] ; then if [ "$(epm print info -p)" = "rpm" ] ; then
# they put all branch here (rpm only): https://rpm.opera.com/rpm/
URL="https://ftp.opera.com/pub/opera/desktop/" [ "$(epm print info -s)" = "alt" ] && repack='--repack' || repack=''
PKGBASEURL="$(epm tool eget --list --latest $URL/*)"linux PKGURL="https://rpm.opera.com/rpm/opera_$BRANCH-*-linux-release-x64-signed.rpm"
epm install $repack $PKGURL
if ! check_url_is_accessible $PKGBASEURL ; then exit
PKGBASEURL="$(epm tool eget --list --second-latest $URL/*)"linux
check_url_is_accessible $PKGBASEURL || fatal "Can't find Opera package for Linux at $URL"
fi fi
PKGURL="$(epm tool eget --list --latest $PKGBASEURL "$(epm print constructname $PKGNAME "*" $arch deb)")" || fatal #" PKGURL="https://deb.opera.com/opera-developer/pool/non-free/o/opera-$BRANCH/$(epm print constructname $PKGNAME "*" $arch deb)"
epm install "$PKGURL" || fatal epm install "$PKGURL"
exit
else
# they put all branch here (rpm only): https://rpm.opera.com/rpm/
[ "$(epm print info -s)" = "alt" ] && repack='--repack' || repack=''
epm install $repack https://rpm.opera.com/rpm/opera_$BRANCH-*-linux-release-x64-signed.rpm
fi
...@@ -32,16 +32,24 @@ remove_file $PRODUCTDIR/opera_autoupdate.version ...@@ -32,16 +32,24 @@ remove_file $PRODUCTDIR/opera_autoupdate.version
remove_file $PRODUCTDIR/opera_autoupdate remove_file $PRODUCTDIR/opera_autoupdate
remove_file $PRODUCTDIR/setup_repo.sh remove_file $PRODUCTDIR/setup_repo.sh
#if epm installed ffmpeg-plugin-browser ; then
# libffmpeg="$(epm -ql ffmpeg-plugin-browser | grep libfmpeg.so)" || fatal
#fi
# test with https://archive.org/details/H265_Test
cat <<EOF >$BUILDROOT$PRODUCTDIR/resources/ffmpeg_preload_config.json cat <<EOF >$BUILDROOT$PRODUCTDIR/resources/ffmpeg_preload_config.json
[ [
"/opt/chromium-browser/libffmpeg.so" "/usr/lib64/ffmpeg-plugin-browser/libffmpeg.so",
"/opt/chromium-browser/libffmpeg.so",
"../../../../chromium-ffmpeg/libffmpeg.so",
"/usr/lib/chromium-browser/libffmpeg.so",
"/usr/lib/chromium-browser/libs/libffmpeg.so"
] ]
EOF EOF
# alternative way # alternative way
mkdir -p $BUILDROOT$PRODUCTDIR/lib_extra/ #mkdir -p $BUILDROOT$PRODUCTDIR/lib_extra/
ln -s /opt/chromium-browser/libffmpeg.so $BUILDROOT$PRODUCTDIR/lib_extra/libffmpeg.so #ln -s /opt/chromium-browser/libffmpeg.so $BUILDROOT$PRODUCTDIR/lib_extra/libffmpeg.so
pack_file $PRODUCTDIR/lib_extra/libffmpeg.so #pack_file $PRODUCTDIR/lib_extra/libffmpeg.so
#rm -fv $BUILDROOT/usr/bin/$PRODUCTCUR #rm -fv $BUILDROOT/usr/bin/$PRODUCTCUR
add_bin_commands add_bin_commands
...@@ -55,7 +63,7 @@ for i in $BUILDROOT$PRODUCTDIR/$PRODUCTCUR ; do ...@@ -55,7 +63,7 @@ for i in $BUILDROOT$PRODUCTDIR/$PRODUCTCUR ; do
a= patchelf --set-rpath "$PRODUCTDIR/lib_extra:$PRODUCTDIR" $i a= patchelf --set-rpath "$PRODUCTDIR/lib_extra:$PRODUCTDIR" $i
done done
subst '1iRequires: chromium-codecs-ffmpeg-extra >= 103' $SPEC #subst '1iRequires: chromium-codecs-ffmpeg-extra >= 103' $SPEC
install_deps install_deps
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment