#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=librewolf
provides=($pkgname-bin $pkgname)
conflicts=($pkgname-bin)
pkgver=111.0.1
pkgrel=02
pkgdesc="Community-maintained fork of Firefox, focused on privacy, security and freedom -binary"
options=(!emptydirs)
install=librewolf.install
makedepends=(sh)
proj_id=12875785 
url=https://gitlab.com/api/v4/projects
weburl="https://librewolf.net/"
info_url="https://librewolf-community.gitlab.io/"
source=($url/$proj_id/packages/generic/librewolf/$pkgver-1/$pkgname-$pkgver-1-x86_64.pkg.tar.zst{,.sig}
        librewolf.install)

package() {
  depends=(gtk3 libxt startup-notification mime-types dbus-glib
	nss ttf-liberation libpulse ffmpeg)
  optdepends=('libnotify: Notification integration'
	'speech-dispatcher: Text-to-Speech'
	'hunspell-en_US: Spell checking, US English'
	'xdg-desktop-portal: Screensharing with Wayland')
  backup=(  usr/lib/librewolf/librewolf.cfg
	usr/lib/librewolf/distribution/policies.json)

	cp -r "${srcdir}"/usr "${pkgdir}"/
}

#---- arch license gpg-key & sha256sums ----

arch=(x86_64)

license=(MPL GPL LGPL)

validpgpkeys=(031F7104E932F7BD7416E7F6D2845E1305D6E801) # <1813007-ohfp@users.noreply.gitlab.com>

sha256sums=(a6ce58a396215771e5f0cb93c41932ed7e18cc86858a4bf935264c9389aaa093  # librewolf-111.0.1-1-x86_64.pkg.tar.zst
	1125a5c735163fd0617885fc8f55193b29ee9a710fa2e0693e017b39a047e527  # librewolf-111.0.1-1-x86_64.pkg.tar.zst.sig
	c3d94f33b96944e80b6fe84e36eaa9b4179ab144fe7aa58c5aa2efae0e2004b9) # librewolf.install

##  c374394191053b9ef5603348da68716e18a8501a095f0c74f1c2a64adb90201d  librewolf-111.0.1-02-x86_64.pkg.tar.lz

