# Maintainer: lsf pkgname=librewolf-bin provides=(${pkgname//-bin/""}) conflicts=(${pkgname//-bin/""}) pkgver=121.0 pkgrel=1 pkgdesc="Community-maintained fork of Firefox, focused on privacy, security and freedom." arch=(x86_64 aarch64) license=(MPL GPL LGPL) url="https://librewolf-community.gitlab.io/" depends=(gtk3 libxt startup-notification mime-types dbus nss ttf-font libpulse ffmpeg) makedepends=(git) optdepends=( 'hunspell-en_US: Spell checking, American English' 'libnotify: Notification integration' 'networkmanager: Location detection via available WiFi networks' 'pulseaudio: Audio support' 'speech-dispatcher: Text-to-Speech' 'xdg-desktop-portal: Screensharing with Wayland' ) validpgpkeys=('662E3CDD6FE329002D0CA5BB40339DD82B12EF16') # librewolf maintainers backup=('usr/lib/librewolf/librewolf.cfg' 'usr/lib/librewolf/distribution/policies.json') options=(!emptydirs) install='librewolf-bin.install' _project_id=44042130 _base_url=https://gitlab.com/api/v4/projects/${_project_id}/packages/generic/${pkgname//-bin/""}/${pkgver}-${pkgrel} _uploadpath_aarch64=${_base_url}/${pkgname//-bin/""}-${pkgver}-${pkgrel}-linux-arm64-package.tar.bz2 _uploadpath_x86_64=${_base_url}/${pkgname//-bin/""}-${pkgver}-${pkgrel}-linux-x86_64-package.tar.bz2 _uploadpath_sig_aarch64=${_uploadpath_aarch64}.sig _uploadpath_sig_x86_64=${_uploadpath_x86_64}.sig _source_tag="${pkgver}-${pkgrel}" source=( "git+https://gitlab.com/${pkgname//-bin/""}-community/browser/source.git#tag=${_source_tag}" default192x192.png librewolf.desktop ) source_aarch64=("${_uploadpath_aarch64}" "${_uploadpath_sig_aarch64}") source_x86_64=("${_uploadpath_x86_64}" "${_uploadpath_sig_x86_64}") sha256sums=('SKIP' '959c94c68cab8d5a8cff185ddf4dca92e84c18dccc6dc7c8fe11c78549cdc2f1' '7d01d317b7db7416783febc18ee1237ade2ec86c1567e2c2dd628a94cbf2f25d') sha256sums_x86_64=('dfc3cf10bd467493bc98712b625f35fdcd83b732366b987d49cebe5229f82c6e' 'SKIP') sha256sums_aarch64=('5686bb208f52d85141b875c44b00d360cc3239452561d612222cea8b10e44620' 'SKIP') package() { # Yep, that's somewhat redundant. But it works. install -dm 755 ${pkgdir}/usr/lib/librewolf install -dm 755 ${pkgdir}/usr/bin cp -r "${srcdir}"/${pkgname//-bin/""}/* "${pkgdir}"/usr/lib/librewolf cd ${srcdir}/${pkgname//-bin/""} local vendorjs="$pkgdir/usr/lib/${pkgname//-bin/""}/browser/defaults/preferences/vendor.js" install -Dvm644 /dev/stdin "$vendorjs" <