# Maintainer: exponential # If your Firefox version doesn't support extracted webextentions #_UNCOMPRESS=0 pkgname=webext-i-still-don-t-care-about-cookies-firefox _download_name="istilldontcareaboutcookies" pkgver=1.1.4 _fileid=('4216095') pkgrel=0 pkgdesc='Remove cookie warnings from most websites, for Firefox' arch=('all') url='https://addons.mozilla.org/en-US/firefox/addon/istilldontcareaboutcookies/' license=('GPL3') optmakedepends=("unzip: to uncompress the webextention") optdepends=('firefox' 'firefox-esr') source=("https://addons.mozilla.org/firefox/downloads/file/$_fileid/istilldontcareaboutcookies-${pkgver}.xpi") noextract=("${_download_name}-${pkgver}.xpi") options=('!strip') b2sums=('6537d666c9e5ea8c23181647e487feb6ff272badfaa482ad6f48b41a840be9ea5762ef1bfe1224748b4d603f695b4433e24a1f9925b8ed7c03fdf0780bb53568') prepare() { [ -z "$_UNCOMPRESS" ] && unzip -u "$_download_name-${pkgver}.xpi" -d "${srcdir}/$pkgname-${pkgver}" || : } package() { _mozilla_id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" _ext_id="idcac-pub@guus.ninja" _license_path="/usr/share/common-licenses/GPL-3" install -dm755 "${pkgdir}/usr/share/mozilla/extensions/$_mozilla_id" if [ -z "$_UNCOMPRESS" ]; then mv "${srcdir}/$pkgname-${pkgver}" "${pkgdir}/usr/share/mozilla/extensions/$_mozilla_id/$_ext_id" else install -Dm644 "$_download_name-${pkgver}.xpi" "${pkgdir}/usr/share/mozilla/extensions/$_mozilla_id/$_ext_id.xpi" fi # Doc install -dm755 "${pkgdir}/usr/share/doc/$pkgname" ln -s "$_license_path" "${pkgdir}/usr/share/doc/$pkgname/" }