summaryrefslogtreecommitdiff
path: root/libre/icecat-noscript/PKGBUILD
blob: e412dd86e44722ca1eefad038888fc80b7064663 (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
29
30
31
# $Id: PKGBUILD 100783 2013-11-10 20:06:17Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>

_pkgname=firefox-noscript
pkgname=icecat-noscript
pkgver=2.6.8.5
pkgrel=1
pkgdesc="plugin for icecat which disables script"
arch=('any')
url="http://noscript.net/"
license=('GPL2')
depends=()
provides=$_pkgname=$pkgver
makedepends=('unzip')
source=(https://secure.informaction.com/download/releases/noscript-$pkgver.xpi)
md5sums=('cef9d5060b1c1931028e802a251a820d')

package() {
#  _ffver=`pacman -Q icecat | cut -f2 -d\ | cut -f1 -d-`
#  depends=("icecat>=${_ffver}" "icecat<=${_ffver/0/99}")
  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
#  sed -i 's#<em:maxVersion>.*</em:maxVersion>#<em:maxVersion>7.*</em:maxVersion>#' install.rdf
  cp -R * $dstdir
  rm $dstdir/noscript-$pkgver.xpi
}