Commit 0bbec481 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add firefox-esr

parent 996e6459
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
PKGNAME=$PRODUCT-$VERSION
mkdir -p opt/
erc unpack $TAR || fatal
mv firefox* opt/$PRODUCT
chmod 0755 opt/$PRODUCT/glxtest
cat <<EOF >$PKGNAME.tar.eepm.yaml
name: $PRODUCT
group: Networking/WWW
license: MPL-2.0
url: https://www.mozilla.org/en-US/firefox/
summary: Fast and Private Web Browser
description: Fast and Private Web Browser
EOF
erc pack $PKGNAME.tar opt || fatal
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=firefox-esr
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Firefox ESR - Fast and Private Web Browser"
URL="https://www.mozilla.org/en-US/firefox"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
VERSION="$(eget -O- https://ftp.mozilla.org/pub/firefox/releases/ | grep -oP '/releases/\K[0-9]+\.[0-9]+\.[0-9]+esr' | sort -V | tail -n1)"
fi
arch=$(epm print info -a)
if [ "$(epm print compare "$VERSION" 136.0)" != "-1" ] ; then
ext="tar.xz"
else
ext="tar.bz2"
fi
PKGURL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-$arch/en-US/firefox-$VERSION.$ext"
install_pack_pkgurl $VERSION
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common-chromium-browser.sh
add_bin_link_command $PRODUCT $PRODUCTDIR/firefox
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Firefox ESR
Comment=Fast and Private Web Browser
Exec=$PRODUCT %f
Icon=$PRODUCT
Terminal=false
StartupNotify=true
Categories=Networking;WWW
EOF
iconpath=$PRODUCTDIR/browser/chrome/icons/default/
iconname=$PRODUCT
for i in 16 32 48 64 128 ; do
install_file $iconpath/default$i.png /usr/share/icons/hicolor/${i}x${i}/apps/$iconname.png
done
set_alt_alternatives 65
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