# Maintainer: hawkeye116477 # Contributor: Plague-doctor > privacyrequired <> com > # Contributor: Simon Kronberg pkgname=waterfox-classic-bin pkgver=2022.11 pkgrel=0 pkgdesc="Customizable privacy-conscious web browser with primary support for legacy extensions" arch=('x86_64') url="https://classic.waterfox.net" license=('MPL') depends=('gtk3' 'gtk2' '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-classic=${pkgver}") conflicts=('waterfox-classic' 'waterfox-classic-git') replaces=('waterfox-bin') source=('waterfox-classic.desktop' 'https://github.com/WaterfoxCo/Waterfox-Classic/releases/download/'"${pkgver}"'-classic/waterfox-classic-'"${pkgver}"'.en-US.linux-'"${arch}"'.tar.bz2') package() { # Create the directories. install -d "${pkgdir}"/{usr/{bin,share/applications},opt} # Install the desktop files. install -m644 "${srcdir}"/waterfox-classic.desktop "${pkgdir}"/usr/share/applications/ # Copy the directory to /opt cp -r waterfox-classic "${pkgdir}"/opt/waterfox-classic # Install icons for i in 16 22 24 32 48 64 128 256; do install -d "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps" ln -Ts /opt/waterfox-classic/browser/chrome/icons/default/default$i.png \ "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/waterfox-classic.png" done # Install a wrapper to avoid confusion about binary path install -Dm755 /dev/stdin "$pkgdir/usr/bin/waterfox-classic" <