updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / scriptish / PKGBUILD
blobf3c5f2ff31848ab596afb28f9dbd6554afd1a5ab
1 # Contributor: mutantmonkey <mutantmonkey@gmail.com>
2 pkgname=scriptish
3 pkgver=0.1.3
4 _ffver=5.0
5 pkgrel=1
6 pkgdesc="Firefox add-on which blocks ads and banners"
7 arch=('any')
8 url="http://github.com/erikvold/scriptish"
9 license=('MIT')
10 depends=('firefox>='${_ffver})
11 source=("https://addons.mozilla.org/firefox/downloads/latest/231203/addon-231203-latest.xpi")
12 md5sums=('36aa88c29b5308de456558bc9a5b1a5f')
13 sha256sums=('6663905f01593fd39894045c9be7c5515ba51dbe0fe3b2b25fdbd08a98b1a35d')
15 build() {
16   cd $srcdir
18   emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf) || return 1
19   installdir=$pkgdir/usr/lib/firefox-${_ffver}/extensions/$emid
21   install -d ${installdir} || return 1
22   cp -a * ${installdir} || return 1