# Maintainer: Christian Schendel # Contributor: lsf pkgname=librewolf-bin provides=(${pkgname//-bin/""}) conflicts=(${pkgname//-bin/""}) epoch=1 pkgver=145.0.1_2 _fixedfirefoxver="${pkgver%_*}" # Version of Firefox this LibreWolf version is based on, but the Firefox patch number is always included _librewolfver="${pkgver#*_}" _firefoxver="${_fixedfirefoxver%.0}" # Removes ".0" from the end. For "136.0.0" this will result in "136.0" but for "136.0.1" won't do anything. pkgrel=1 pkgdesc="Community-maintained fork of Firefox, focused on privacy, security and freedom." arch=(x86_64 aarch64) license=(MPL-2.0) url="https://librewolf.net/" 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/""}/$_firefoxver-$_librewolfver _uploadpath_aarch64=${_base_url}/${pkgname//-bin/""}-$_firefoxver-$_librewolfver-linux-arm64-package.tar.xz _uploadpath_x86_64=${_base_url}/${pkgname//-bin/""}-$_firefoxver-$_librewolfver-linux-x86_64-package.tar.xz _uploadpath_sig_aarch64=${_uploadpath_aarch64}.sig _uploadpath_sig_x86_64=${_uploadpath_x86_64}.sig _source_tag="$_firefoxver-$_librewolfver" source=( "git+https://gitlab.com/${pkgname//-bin/""}-community/browser/source.git#tag=${_source_tag}" default192x192.png librewolf.svg librewolf-symbolic.svg librewolf.desktop "https://raw.githubusercontent.com/flathub/io.gitlab.librewolf-community/refs/heads/master/io.gitlab.librewolf-community.appdata.xml" ) source_aarch64=( "${_uploadpath_aarch64}" "${_uploadpath_sig_aarch64}" ) source_x86_64=( "${_uploadpath_x86_64}" "${_uploadpath_sig_x86_64}" ) b2sums=('999b34a3b171562fb492c4ffb6e61cfafd3c816e0c3a53a30f4eff771f4bf40080efcb53e9793076e8a89bc833b1649a5790cf2a8c18a07528133a0efbd636ea' 'bc8d69df64681bd0e6d74bb791576371ce5853d4d4596781f2b7e6d8a9c04256758df45c284ecb450eec53cbf5038e38c09476d436ad4e03b7b5ce672714c67b' 'c5ae312758c58b75ca5aca02b9baef2e1c5a7a45c30c27714882be62871b79016ac7f7dcee76c1f17f544e0fe0977224adddc9fbc78cdb5993533f1618c60773' '054348c3b31c398bb35140f77e752c624b78f7e6a0172798338ab88a88b70da10304c810d8457d95929c3ab3fe08a06eed54d56d192d122b695838e9f909023f' '12af7f5829f6c8a85e6bc11c211e1456209411d11319b615590128369e9882a63932fc8f12b0f4dea12aa631587d2655aa1b9d77b1068242d49d806de260d633' '8f6b8bbe9774508f85d7211b14968efdff79fd7679faf32f7872b3d31bd76542366f0803b66f060d38a29e9ebe2c00d22cf8956908b7f7a7d00ca181f859d872') b2sums_x86_64=('3ec6afa417d33a23768e917861988bf0837eb703f61f8c712a24dcd5700efec51d57f1e6a7dbd8d33ed9aeca63622f7a0589c580d9dcab89cdaab2b250f1f70c' 'SKIP') b2sums_aarch64=('007071848c1432dae3e95fa7437a1116b8a4643dd693429887490b863c7d446a8e0d01278fe8cee9b646df4a376f7c8f151a0890e7eb08ef1e55caa68b4ea597' 'SKIP') package() { depends+=( alsa-lib at-spi2-core bash cairo dbus ffmpeg fontconfig freetype2 gcc-libs gdk-pixbuf2 glib2 glibc gtk3 hicolor-icon-theme libpulse libx11 libxcb libxcomposite libxcursor libxdamage libxext libxfixes libxi libxrandr libxrender libxt mime-types nspr nss pango startup-notification ttf-font ) # 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" <