Commit beb999f5 authored by Valentin Pechenov's avatar Valentin Pechenov Committed by Vitaly Lipatov

epm play: add waterfox

parent 34df8a4d
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
PKGNAME=$PRODUCT-$VERSION
mkdir -p opt/
erc unpack $TAR || fatal
mv $PRODUCT* 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.waterfox.net/
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=waterfox
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Fast and Private Web Browser"
URL="https://www.waterfox.net/"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
VERSION="$(curl -s https://api.github.com/repos/BrowserWorks/Waterfox/releases/latest | grep -oP '"tag_name": "\K(.*?)(?=")' | sed 's/G//g')"
fi
PKGURL="https://cdn1.waterfox.net/waterfox/releases/G$VERSION/Linux_x86_64/waterfox-G$VERSION.tar.bz2"
install_pack_pkgurl $VERSION
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
#PRODUCT=waterfox
. $(dirname $0)/common.sh
add_bin_link_command $PRODUCT $PRODUCTDIR/$PRODUCT
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Waterfox
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 22 24 32 48 64 128 256 ; do
install_file $iconpath/default$i.png /usr/share/icons/hicolor/${i}x${i}/apps/$iconname.png
done
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