# $Id: PKGBUILD 129745 2015-03-22 07:42:16Z spupykin $ # Maintainer (Arch): Sergej Pupykin # Maintainer: André Silva pkgname=icecat-noscript pkgver=2.6.9.19 pkgrel=1 pkgdesc="Extension for icecat which disables script" arch=('any') url="http://noscript.net/" license=('GPL2') depends=() makedepends=('unzip') source=(https://secure.informaction.com/download/releases/noscript-$pkgver.xpi) md5sums=('bfc8b7e81b46bfc1159e1b995a108c01') package() { depends=("icecat") cd $srcdir local emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' install.rdf) local dstdir=$pkgdir/usr/lib/icecat/browser/extensions/${emid} install -d $dstdir cp -R * $dstdir rm $dstdir/noscript-$pkgver.xpi }