# Maintainer: GI_Jack # Contributor: Marcs # Contributor: OmeGa # Contributor: Vinycius Maia pkgname=firefox-extension-greasemonkey _file=3716451 pkgver=4.11 pkgrel=1 pkgdesc="Customize the way a web page displays or behaves, by using small bits of JavaScript." arch=('any') url="http://www.greasespot.net/" license=('MPL') makedepends=('jq') depends=('firefox>=52.0') source=("https://addons.mozilla.org/firefox/downloads/file/${_file}/greasemonkey-${pkgver}-an+fx.xpi") sha256sums=('5eb85a96f76a9b16a47cf207991d4237bf597c7b767574559204e2e0ff1173f0') package() { cd ${srcdir} local _emid=$(cat manifest.json | jq -r '.applications.gecko.id')|| return 1 test ! -z "${_emid}" local _file=(*.xpi) test "${#_file[@]}" -eq 1 install -Dpm644 "${_file}" "${pkgdir}/usr/lib/firefox/browser/extensions/${_emid}.xpi" } # vim:set ts=2 sw=2 et: