Commit dc02b057 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play yandex-browser: install codecs directly via epm pack

parent 415709d4
...@@ -5,8 +5,10 @@ RETURNTARNAME="$2" ...@@ -5,8 +5,10 @@ RETURNTARNAME="$2"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
CURDIR=$(pwd) [ -x "$UPDATEFFMPEG" ] || fatal "$UPDATEFFMPEG is missed"
PRODUCTDIR="$(dirname $UPDATEFFMPEG)"
CURDIR="$(pwd)"
PRODUCTDIR="$(dirname "$UPDATEFFMPEG")"
BASEPKGNAME=yandex-browser-stable BASEPKGNAME=yandex-browser-stable
PKGNAME=$(basename $0 .sh) PKGNAME=$(basename $0 .sh)
...@@ -34,7 +36,6 @@ URL="https://browser-resources.s3.yandex.net/linux/codecs.json" ...@@ -34,7 +36,6 @@ URL="https://browser-resources.s3.yandex.net/linux/codecs.json"
update_url_if_need_mirrored update_url_if_need_mirrored
# download ffmpeg with upstream script update-ffmpeg but with our pack_ffmpeg function # download ffmpeg with upstream script update-ffmpeg but with our pack_ffmpeg function
[ -x $UPDATEFFMPEG ] || fatal "$UPDATEFFMPEG is missed"
SC=$(mktemp) SC=$(mktemp)
trap "rm -f $SC" EXIT trap "rm -f $SC" EXIT
sed -e 's|install_ffmpeg &&|pack_ffmpeg \&\&|' \ sed -e 's|install_ffmpeg &&|pack_ffmpeg \&\&|' \
......
#!/bin/sh
SUPPORTEDARCHES="x86_64"
PRODUCTALT="stable beta"
DESCRIPTION=''
BRANCH=stable
if [ "$2" = "beta" ] || epm installed yandex-browser-beta-codecs-ffmpeg-extra ; then
BRANCH=beta
fi
BASEPKGNAME=yandex-browser-$BRANCH
PKGNAME=$BASEPKGNAME-codecs-ffmpeg-extra
. $(dirname $0)/common.sh
epm pack --install $PKGNAME
...@@ -4,6 +4,7 @@ DESCRIPTION="Yandex browser from the official site" ...@@ -4,6 +4,7 @@ DESCRIPTION="Yandex browser from the official site"
TIPS="Run 'epm play yandex-browser=beta' to install beta version of the browser." TIPS="Run 'epm play yandex-browser=beta' to install beta version of the browser."
PRODUCTALT="stable beta" PRODUCTALT="stable beta"
BRANCH=stable BRANCH=stable
if [ "$2" = "beta" ] || epm installed yandex-browser-beta ; then if [ "$2" = "beta" ] || epm installed yandex-browser-beta ; then
BRANCH=beta BRANCH=beta
...@@ -37,4 +38,5 @@ else ...@@ -37,4 +38,5 @@ else
epm install "$URL/rpm/stable/x86_64/$(epm print constructname $PKGNAME "*" x86_64 rpm)" || exit epm install "$URL/rpm/stable/x86_64/$(epm print constructname $PKGNAME "*" x86_64 rpm)" || exit
fi fi
epm play yandex-browser-codecs-ffmpeg-extra $BRANCH UPDATEFFMPEG=$(epm ql $PKGNAME | grep update-ffmpeg) || fatal
epm pack --install $PKGNAME-codecs-ffmpeg-extra $UPDATEFFMPEG
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