summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed2b91cf5b103fd96c56251bb4a81088820beff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: GI_Jack <GI_Jack@hackermail.com>
# Contributor: Marcs <aur (at) mg.odd.red>
# Contributor: OmeGa <omega [U+0040] mailoo [.] org>
# Contributor: Vinycius Maia <suportevg@uol.com.br>

pkgname=firefox-extension-greasemonkey
_file=4332091
pkgver=4.13
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}.xpi")
sha256sums=('31b9e9521eac579114ed20616851f4f984229fbe6d8ebd4dc4799eb48c59578c')

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 "greasemonkey-${pkgver}.xpi" "${pkgdir}/usr/lib/firefox/browser/extensions/greasemonkey-${pkgver}.xpi"
}

# vim:set ts=2 sw=2 et: