wok-next view librefox/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents 7c5d038be95b
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="librefox"
4 VERSION="2.1"; FIREFOX_VERSION="64.0.0"
5 CATEGORY="network"
6 SHORT_DESC="Librefox, patching Firefox for an enforced privacy and security"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MPL2"
9 WEB_SITE="https://github.com/intika/Librefox/"
11 case $ARCH in
12 i?86)
13 TARBALL="Librefox-$VERSION-Firefox-Linux-$FIREFOX_VERSION-x32.tar.xz"
14 TARBALL_SHA1="531ec9b6e1e763d7e13f6b7ce96640c26b7a85f5"
15 ;;
16 x86_64)
17 TARBALL="Librefox-$VERSION-Firefox-Linux-$FIREFOX_VERSION-x64.tar.xz"
18 TARBALL_SHA1="1d25c606e08e6ad2e674abf3032255902067a81d"
19 ;;
20 esac
21 WGET_URL="https://github.com/intika/Librefox/releases/download/Librefox-v$VERSION-v$FIREFOX_VERSION/$TARBALL"
23 DEPENDS="atk libcairo dbus dbus-glib fontconfig freetype gdk-pixbuf glib gtk2 \
24 gtk3 libatomic libx11 libxcb libxcomposite libxcursor libxdamage libxext \
25 libxfixes libxi libxrender libxt nspr nss pango"
27 compile_rules() {
28 # Installation path
29 fx='/opt/intika/librefox'
31 mkdir -p \
32 $install$fx \
33 $install/usr/bin \
34 $install/usr/share/applications
36 # Copy everything
37 cp -a $src/* $install$fx
39 # Executable
40 ln -s $fx/firefox $install/usr/bin/librefox
42 # Icons
43 for size in 16 32 48 128; do
44 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
45 mkdir -p $icon_folder
46 ln -s $fx/browser/chrome/icons/default/default$size.png \
47 $icon_folder/librefox.png
48 done
50 # Make symlinks relative
51 fix symlinks
53 # # Allow user updates (save user's and our traffic)
54 # chmod -R o+w $install$fx
56 # Desktop shortcuts
57 cp $stuff/*.desktop $install/usr/share/applications
59 # Fix ownership
60 chown -R 0:0 $install
62 # Clean
63 rm -r $src
64 }