Date: Friday, November 8, 2019 @ 02:17:03 Author: eschwartz Revision: 524584
archrelease: copy trunk to community-any Added: firefox-extension-privacybadger/repos/community-any/PKGBUILD (from rev 524583, firefox-extension-privacybadger/trunk/PKGBUILD) Deleted: firefox-extension-privacybadger/repos/community-any/PKGBUILD ----------+ PKGBUILD | 94 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-11-08 02:15:51 UTC (rev 524583) +++ PKGBUILD 2019-11-08 02:17:03 UTC (rev 524584) @@ -1,47 +0,0 @@ -# Maintainer: Eli Schwartz <eschwa...@archlinux.org> -# Contributor: Hyacinthe Cartiaux <hyacinthe.carti...@free.fr> - -_pkgname=privacybadger -pkgname=firefox-extension-${_pkgname} -pkgver=2019.10.8 -pkgrel=1 -pkgdesc="Block third party tracking in your browser" -arch=('any') -url="https://www.eff.org/privacybadger" -license=('GPL3') -groups=('firefox-addons') -makedepends=("unzip") -source=("${_pkgname}-${pkgver}.xpi::https://www.eff.org/files/privacy-badger-eff-${pkgver}.xpi" - "${_pkgname}-${pkgver}.xpi.sig::https://www.eff.org/files/privacy-badger-eff-${pkgver}.xpi.sig") -noextract=("${_pkgname}-${pkgver}.xpi") -sha256sums=('eb4c529235563e56c385a32fdf97453f2c57e52da8bdbd500218b8d32495513f' - 'SKIP') -b2sums=('0eca05dd67659e65ade1ad7e588a4c54f904570d14ec74a8a3e919a5b656574cf6826d7972724e0e0a2872033a62e92d96d901443d497ee8c1b759217f91d7e0' - 'SKIP') -validpgpkeys=('88F8662241B0C16C16E3B5A7950FC3999D80F309') # Alexei <ale...@eff.org> - -prepare() { - cd "$srcdir" - - unzip -qqo "${_pkgname}-${pkgver}.xpi" -d "${_pkgname}-${pkgver}" -} - -package() { - depends=("firefox") - cd "${srcdir}" - - if [[ -f ${_pkgname}-${pkgver}/install.rdf ]]; then - _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' ${_pkgname}-${pkgver}/install.rdf)" - else - _extension_id="$(sed -n 's/.*"id": "\(.*\)".*/\1/p' ${_pkgname}-${pkgver}/manifest.json)" - fi - _extension_dest="${pkgdir}/usr/lib/firefox/browser/extensions/${_extension_id}" - # Should this extension be unpacked or not? - if grep -q '<em:unpack>true</em:unpack>' ${_pkgname}-${pkgver}/install.rdf 2>/dev/null; then - install -dm755 "${_extension_dest}" - cp -R ${_pkgname}-${pkgver}/* "${_extension_dest}" - chmod -R ugo+rX "${_extension_dest}" - else - install -Dm644 ${_pkgname}-${pkgver}.xpi "${_extension_dest}.xpi" - fi -} Copied: firefox-extension-privacybadger/repos/community-any/PKGBUILD (from rev 524583, firefox-extension-privacybadger/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-11-08 02:17:03 UTC (rev 524584) @@ -0,0 +1,47 @@ +# Maintainer: Eli Schwartz <eschwa...@archlinux.org> +# Contributor: Hyacinthe Cartiaux <hyacinthe.carti...@free.fr> + +_pkgname=privacybadger +pkgname=firefox-extension-${_pkgname} +pkgver=2019.10.28 +pkgrel=1 +pkgdesc="Block third party tracking in your browser" +arch=('any') +url="https://www.eff.org/privacybadger" +license=('GPL3') +groups=('firefox-addons') +makedepends=("unzip") +source=("${_pkgname}-${pkgver}.xpi::https://www.eff.org/files/privacy-badger-eff-${pkgver}.xpi" + "${_pkgname}-${pkgver}.xpi.sig::https://www.eff.org/files/privacy-badger-eff-${pkgver}.xpi.sig") +noextract=("${_pkgname}-${pkgver}.xpi") +sha256sums=('f4cdd97e741204c487ceb344c564fb9274b6e3bd4b39d32da087d35ec04adf5a' + 'SKIP') +b2sums=('e61a697b0973572bdf9ca9a725053c9c1f6cbf516261d12767b1e95d789a78acd3b3815f6d0caa1c7cfc72bbfebf0b2f80755a1a8b07f51e36ba2650bbd65c6c' + 'SKIP') +validpgpkeys=('88F8662241B0C16C16E3B5A7950FC3999D80F309') # Alexei <ale...@eff.org> + +prepare() { + cd "$srcdir" + + unzip -qqo "${_pkgname}-${pkgver}.xpi" -d "${_pkgname}-${pkgver}" +} + +package() { + depends=("firefox") + cd "${srcdir}" + + if [[ -f ${_pkgname}-${pkgver}/install.rdf ]]; then + _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' ${_pkgname}-${pkgver}/install.rdf)" + else + _extension_id="$(sed -n 's/.*"id": "\(.*\)".*/\1/p' ${_pkgname}-${pkgver}/manifest.json)" + fi + _extension_dest="${pkgdir}/usr/lib/firefox/browser/extensions/${_extension_id}" + # Should this extension be unpacked or not? + if grep -q '<em:unpack>true</em:unpack>' ${_pkgname}-${pkgver}/install.rdf 2>/dev/null; then + install -dm755 "${_extension_dest}" + cp -R ${_pkgname}-${pkgver}/* "${_extension_dest}" + chmod -R ugo+rX "${_extension_dest}" + else + install -Dm644 ${_pkgname}-${pkgver}.xpi "${_extension_dest}.xpi" + fi +}