Commit 1530d410 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play yandex-browser: install for ALT from rpm (the same binaries), add…

epm play yandex-browser: install for ALT from rpm (the same binaries), add support for corporate package
parent bb934348
yandex-browser-stable-codecs-ffmpeg-extra.sh
\ No newline at end of file
......@@ -13,6 +13,8 @@ BASEPKGNAME=yandex-browser-stable
if echo "$PRODUCT" | grep -q "yandex-browser-beta" ; then
BASEPKGNAME=yandex-browser-beta
elif echo "$PRODUCT" | grep -q "yandex-browser-corporate" ; then
BASEPKGNAME=yandex-browser-corporate
fi
# used in update-ffmpeg
......
......@@ -2,7 +2,7 @@
BASEPKGNAME=yandex-browser
SUPPORTEDARCHES="x86_64"
PRODUCTALT="stable beta"
PRODUCTALT="stable beta corporate"
VERSION="$2"
DESCRIPTION="Yandex browser from the official site"
TIPS="Run 'epm play yandex-browser=beta' to install beta version of the browser."
......@@ -13,11 +13,15 @@ TIPS="Run 'epm play yandex-browser=beta' to install beta version of the browser.
URL="https://repo.yandex.ru/yandex-browser"
if [ "$(epm print info -s)" = "alt" ] || [ "$(epm print info -p)" != "rpm" ] ; then
epm install "$URL/deb/pool/main/y/$PKGNAME/$(epm print constructname $PKGNAME "$VERSION*" amd64 deb)" || exit
else
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
if [ "$(epm print info -p)" = "rpm" ] ; then
# https://repo.yandex.ru/yandex-browser/rpm/stable/x86_64/yandex-browser-stable-23.1.1.1114-1.x86_64.rpm
epm install "$URL/rpm/stable/x86_64/$(epm print constructname $PKGNAME "$VERSION*" x86_64 rpm)" || exit
epm install --repack "$URL/rpm/stable/x86_64/$(epm print constructname $PKGNAME "$VERSION*" x86_64 rpm)" || exit
else
# https://repo.yandex.ru/yandex-browser/deb/pool/main/y/yandex-browser-beta/yandex-browser-beta_23.5.4.682-1_amd64.deb
epm install "$URL/deb/pool/main/y/$PKGNAME/$(epm print constructname $PKGNAME "$VERSION*" amd64 deb)" || exit
fi
UPDATEFFMPEG=$(epm ql $PKGNAME | grep update-ffmpeg) || fatal
......
......@@ -11,6 +11,7 @@ PRODUCTDIR=/opt/yandex/browser-beta
. $(dirname $0)/common-chromium-browser.sh
subst '1iConflicts: yandex-browser-stable' $SPEC
subst '1iConflicts: yandex-browser-corporate' $SPEC
subst "s|^\(Version:.*\)|\1\nProvides: yandex-browser = %version|" $SPEC
......
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=yandex-browser
PRODUCTCUR=yandex-browser-corporate
PRODUCTDIR=/opt/yandex/browser
. $(dirname $0)/common-chromium-browser.sh
subst '1iConflicts: yandex-browser-stable' $SPEC
subst '1iConflicts: yandex-browser-beta' $SPEC
subst "s|^\(Version:.*\)|\1\nProvides: yandex-browser = %version|" $SPEC
add_findreq_skiplist $PRODUCTDIR/update-ffmpeg
# this package can be missed
epm install --skip-installed --no-remove fonts-ttf-google-noto-emoji-color && add_requires fonts-ttf-google-noto-emoji-color
set_alt_alternatives 65
copy_icons_to_share
cleanup
add_bin_commands
use_system_xdg
add_chromium_deps
fix_desktop_file /usr/bin/$PRODUCTCUR
......@@ -11,6 +11,7 @@ PRODUCTDIR=/opt/yandex/browser
. $(dirname $0)/common-chromium-browser.sh
subst '1iConflicts: yandex-browser-beta' $SPEC
subst '1iConflicts: yandex-browser-corporate' $SPEC
subst "s|^\(Version:.*\)|\1\nProvides: yandex-browser = %version|" $SPEC
add_findreq_skiplist $PRODUCTDIR/update-ffmpeg
......
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