wok-next annotate librefox/receipt @ rev 21445

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