# Maintainer: hawkeye116477 pkgname=waterfox-bin _pkgver=6.0.12 pkgver=G${_pkgver} pkgrel=1 pkgdesc="Current/modern generation of customizable privacy-conscious web browser." arch=('x86_64') url="https://www.waterfox.net" license=('MPL') depends=('gtk3' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib' 'ffmpeg' 'ttf-font' 'hicolor-icon-theme') 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-g=${_pkgver}" "waterfox=${pkgver}") source=('waterfox.desktop' 'https://cdn1.waterfox.net/waterfox/releases/'"${pkgver}"'/Linux_x86_64/waterfox-'"${pkgver}"'.tar.bz2') package() { # Create the necessary directories. install -d "${pkgdir}"/{usr/{bin,share/applications},opt} # Install the desktop files. install -m644 "${srcdir}"/waterfox.desktop "${pkgdir}"/usr/share/applications/ # Copy the extracted directory to /opt/. cp -r waterfox "${pkgdir}"/opt/waterfox # 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/browser/chrome/icons/default/default$i.png \ "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/waterfox.png" done # Add additional useful settings install -Dm644 /dev/stdin "$pkgdir/opt/waterfox/browser/defaults/preferences/vendor.js" <