pkgs/srcpkgs/waterfox-g6-bin/template
2024-06-21 21:14:00 -04:00

58 lines
2 KiB
Bash

# Template file for 'waterfox-g6-bin'
pkgname=waterfox-g6-bin
version=6.0.16
revision=1
archs="x86_64"
repository="cereus-extra"
build_style=fetch
hostmakedepends="bsdtar"
depends="dbus-glib ffmpeg gtk+ gtk+3 hicolor-icon-theme startup-notification libnotify fontconfig libXt"
short_desc="Sixth generation of customizable privacy-conscious web browser - precompiled binaries"
maintainer="Kevin Figueroa <kfdevart@disroot.org>"
license="MPL-2.0"
homepage="https://www.waterfox.net"
changelog="${homepage}/docs/releases/G${version}/"
distfiles="https://cdn1.waterfox.net/waterfox/releases/G${version}/Linux_x86_64/waterfox-G${version}.tar.bz2"
checksum=b88132e00296a8d583bb51fe283c3829a24d974d36f78a52cce9f88fd8b8e616
replaces="waterfox-g4-bin waterfox-g5-bin"
do_install() {
vmkdir opt
bsdtar -C ${DESTDIR}/opt/ -xf waterfox-G${version}.tar.bz2
vmkdir usr/bin
ln -rfs ${DESTDIR}/opt/waterfox/waterfox ${DESTDIR}/usr/bin/
# Copy launcher
vmkdir usr/share/applications
vcopy ${FILESDIR}/waterfox.desktop usr/share/applications
# Install the icons
for res in 16 32 48 64 128; do
vmkdir usr/share/icons/hicolor/${res}x${res}/apps
vcopy ${DESTDIR}/opt/waterfox/browser/chrome/icons/default/default${res}.png \
usr/share/icons/hicolor/${res}x${res}/apps/waterfox.png
done
# Add additional useful settings
install -Dm644 /dev/stdin "${DESTDIR}/opt/waterfox/browser/defaults/preferences/vendor.js" <<END
// 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
install -Dm644 /dev/stdin "${DESTDIR}/opt/waterfox/distribution/policies.json" <<END
{
"policies": {
"AppAutoUpdate": false,
"ManualAppUpdateOnly": false
}
}
END
}