# Maintainer: Simon Kronberg # Contributor: hawkeye116477 pkgname=waterfox-current-bin pkgver=2020.06 pkgrel=1 pkgdesc="64-bit Firefox fork; no telemetry; supports XUL & XPCOM (incl. unsigned) add-ons." arch=('x86_64') url="https://www.waterfox.net" license=('MPL') depends=('gtk3' 'gtk2' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib' 'ffmpeg' 'ttf-font' 'hicolor-icon-theme' 'nss') optdepends=('networkmanager: Location detection via available WiFi networks' 'libnotify: Notification integration' 'pulseaudio: Audio support' 'alsa-lib: Audio support' 'speech-dispatcher: Text-to-Speech' 'hunspell-en_US: Spell checking, American English') provides=("waterfox-current=${pkgver}") conflicts=('waterfox-current') replaces=('waterfox-alpha-bin') source=('waterfox-current.desktop' 'https://storage-waterfox.netdna-ssl.com/releases/linux64/installer/waterfox-current-'"${pkgver}"'.en-US.linux-x86_64.tar.bz2') package() { # Create the necessary directories. install -d "${pkgdir}"/{usr/{bin,share/applications},opt} # Install the desktop files. install -m644 "${srcdir}"/waterfox-current.desktop "${pkgdir}"/usr/share/applications/ # Copy the extracted directory to /opt/. cp -r waterfox "${pkgdir}"/opt/waterfox-current # Install icons for i in 16 32 48 64 128; do install -d "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps" ln -Ts /opt/waterfox-current/browser/chrome/icons/default/default$i.png \ "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/waterfox-current.png" done # Add additional useful settings install -Dm644 /dev/stdin "$pkgdir/opt/waterfox-current/browser/defaults/preferences/vendor.js" <