# Maintainer: Oliver Smith <ollieparaoid@postmarketos.org>
pkgname=mobile-config-firefox
pkgver=2.1.0
pkgrel=0
pkgdesc="Firefox tweaks for mobile and privacy"
url="https://gitlab.com/postmarketOS/mobile-config-firefox"
source="
	https://gitlab.com/postmarketOS/mobile-config-firefox/-/archive/$pkgver/mobile-config-firefox-$pkgver.tar.bz2
	distro_links.html
"
arch="noarch"
license="GPL-3.0-or-later"
options="!check" # No tests
replaces="postmarketos-config-firefox"
provides="postmarketos-config-firefox=$pkgver"

prepare() {
	default_prepare
	cp "$srcdir/distro_links.html" "$builddir/src/homepage"
}

build() {
	make DISTRO=postmarketOS
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="
2a1ee9e3dac3e8066dc7052440e2ab69734e8bfdd25ab06c6250c2f15a6bb63d0dbe8cd3c0bcc546efaee12308b13c62dfd4c7dad7f1d6ab75139d5ced87f472  mobile-config-firefox-2.1.0.tar.bz2
b99713e30add88f532870430a3c9122faf7e932356cdbe1faa571b661088ce00665a5e499f1873688e58c014b741235571b67efa3df2228b5f3e39972d6f35e3  distro_links.html
"
