diff options
author | hawkeye116477 | 2022-10-03 23:47:58 +0200 |
---|---|---|
committer | hawkeye116477 | 2022-10-03 23:47:58 +0200 |
commit | 055d0b1e54df31f4af2c1fd1e67bb6f3f608bb41 (patch) | |
tree | 5be879e2038e638ceaebff619e401e894905610f /PKGBUILD | |
download | aur-055d0b1e54df31f4af2c1fd1e67bb6f3f608bb41.tar.gz |
Waterfox G5
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5c0875c4235d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,70 @@ +# Maintainer: hawkeye116477 <hawkeye116477 at gmail dot com> + +pkgname=waterfox-g-bin +pkgver=5.0 +pkgrel=0 +pkgdesc="Fifth generation of customizable privacy-conscious web browser." +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') +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}") +conflicts=('waterfox-g') +source=('waterfox-g.desktop' + 'https://cdn1.waterfox.net/waterfox/releases/G'"${pkgver}"'/Linux_x86_64/waterfox-G'"${pkgver}"'.tar.bz2') + +package() { + # Create the necessary directories. + install -d "${pkgdir}"/{usr/{bin,share/applications},opt} + + # Install the desktop files. + install -m644 "${srcdir}"/waterfox-g.desktop "${pkgdir}"/usr/share/applications/ + + # Copy the extracted directory to /opt/. + cp -r waterfox "${pkgdir}"/opt/waterfox-g + + # 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-g/browser/chrome/icons/default/default$i.png \ + "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/waterfox-g.png" + done + + # Add additional useful settings + install -Dm644 /dev/stdin "$pkgdir/opt/waterfox-g/browser/defaults/preferences/vendor.js" <<END +// Disable default browser checking +pref("browser.shell.checkDefaultBrowser", false); + +// Use LANG environment variable to choose locale +pref("intl.locale.requested", ""); + +// Automatic installation of updates won't work on root, so disable this +pref("app.update.auto", false); + +// Use system-provided dictionaries +pref("spellchecker.dictionary_path", "/usr/share/hunspell"); +END + +# Disable automatic updates and update notifications and allow only for manual update checking + install -Dm644 /dev/stdin "$pkgdir/opt/waterfox-g/distribution/policies.json" <<END +{ + "policies": { + "AppAutoUpdate": false, + "ManualAppUpdateOnly": true + } +} +END + + # Symlink the binary to /usr/bin/. + ln -s /opt/waterfox-g/waterfox "${pkgdir}"/usr/bin/waterfox-g +} + +sha256sums=('09b6d083ecfc42d8c355177b56b7073f387c968c162041507f2870c38e4b7259' + '62f06981c2e2e5abace5949b65c8f6e55f6cce86df04528b03313dad03eaa520') |