wok-next rev 21084

Add librefox
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 25 14:44:32 2018 +0200 (2018-12-25)
parents fa797597aa17
children 7c5d038be95b
files librefox/.icon.png librefox/receipt librefox/stuff/librefox.desktop othello/stuff/overrides
line diff
     1.1 Binary file librefox/.icon.png has changed
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/librefox/receipt	Tue Dec 25 14:44:32 2018 +0200
     2.3 @@ -0,0 +1,64 @@
     2.4 +# SliTaz package receipt v2.
     2.5 +
     2.6 +PACKAGE="librefox"
     2.7 +VERSION="2.1"; FIREFOX_VERSION="64.0.0"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="Librefox, patching Firefox for an enforced privacy and security"
    2.10 +MAINTAINER="al.bobylev@gmail.com"
    2.11 +LICENSE="MPL2"
    2.12 +WEB_SITE="https://github.com/intika/Librefox/"
    2.13 +
    2.14 +case $ARCH in
    2.15 +	i?86)
    2.16 +		TARBALL="Librefox-$VERSION-Firefox-Linux-$FIREFOX_VERSION-x32.tar.xz"
    2.17 +		TARBALL_SHA1="531ec9b6e1e763d7e13f6b7ce96640c26b7a85f5"
    2.18 +		;;
    2.19 +	x86_64)
    2.20 +		TARBALL="Librefox-$VERSION-Firefox-Linux-$FIREFOX_VERSION-x64.tar.xz"
    2.21 +		TARBALL_SHA1="1d25c606e08e6ad2e674abf3032255902067a81d"
    2.22 +		;;
    2.23 +esac
    2.24 +WGET_URL="https://github.com/intika/Librefox/releases/download/Librefox-v$VERSION-v$FIREFOX_VERSION/$TARBALL"
    2.25 +
    2.26 +DEPENDS="atk cairo dbus dbus-glib fontconfig freetype gdk-pixbuf glib gtk2 \
    2.27 +gtk3 libatomic libx11 libxcb libxcomposite libxcursor libxdamage libxext \
    2.28 +libxfixes libxi libxrender libxt nspr nss pango"
    2.29 +
    2.30 +compile_rules() {
    2.31 +	# Installation path
    2.32 +	fx='/opt/intika/librefox'
    2.33 +
    2.34 +	mkdir -p \
    2.35 +		$install$fx \
    2.36 +		$install/usr/bin \
    2.37 +		$install/usr/share/applications
    2.38 +
    2.39 +	# Copy everything
    2.40 +	cp -a $src/* $install$fx
    2.41 +
    2.42 +	# Executable
    2.43 +	ln -s $fx/firefox $install/usr/bin/librefox
    2.44 +
    2.45 +	# Icons
    2.46 +	for size in 16 32 48 128; do
    2.47 +		icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
    2.48 +		mkdir -p $icon_folder
    2.49 +		ln -s $fx/browser/chrome/icons/default/default$size.png \
    2.50 +			$icon_folder/librefox.png
    2.51 +	done
    2.52 +
    2.53 +	# Make symlinks relative
    2.54 +	fix symlinks
    2.55 +
    2.56 +	# Allow user updates (save user's and our traffic)
    2.57 +	chmod -R o+w $install$fx
    2.58 +
    2.59 +	# Desktop shortcuts
    2.60 +	cp $stuff/*.desktop $install/usr/share/applications
    2.61 +
    2.62 +	# Fix ownership
    2.63 +	chown -R 0:0 $install
    2.64 +
    2.65 +	# Clean
    2.66 +	rm -r $src
    2.67 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/librefox/stuff/librefox.desktop	Tue Dec 25 14:44:32 2018 +0200
     3.3 @@ -0,0 +1,7 @@
     3.4 +[Desktop Entry]
     3.5 +Type=Application
     3.6 +Name=Librefox
     3.7 +Exec=librefoxl %u
     3.8 +Icon=librefox
     3.9 +Categories=GTK;Network;WebBrowser;
    3.10 +MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
     4.1 --- a/othello/stuff/overrides	Tue Dec 25 04:23:45 2018 +0200
     4.2 +++ b/othello/stuff/overrides	Tue Dec 25 14:44:32 2018 +0200
     4.3 @@ -1,1 +1,2 @@
     4.4  80:80 /var/www/othello/*
     4.5 +80:80 /var/www/othello/images/*