summaryrefslogtreecommitdiff
path: root/libre/icecat-spell-ru/PKGBUILD
blob: 59e29f13fa6b604b07202beda4bd87658bc6993f (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
# $Id: PKGBUILD 90907 2013-05-15 13:06:09Z spupykin $
# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor (Arch): Maciej Sitarz <macieks@freesco.pl>

pkgname=icecat-spell-ru
pkgver=0.4.4
pkgrel=13.2
pkgdesc="Russian spellchecker dictionary for IceCat"
arch=(any)
url="https://addons.mozilla.org/firefox/dictionaries/"
license=("GPL")
depends=("icecat")
noextract=(russian_spellchecking_dictionary_with_io_support-$pkgver-fx+tb+sm.xpi)
source=(https://addons.mozilla.org/firefox/downloads/file/98798/russian_spellchecking_dictionary-$pkgver-fx+tb+sm.xpi)
md5sums=('269a8bdd38a5641b5f6cfb12715f1029')

package() {
#  _ffver=`pacman -Q icecat | cut -f2 -d\ | cut -f1 -d-`
#  depends=("icecat>=${_ffver}" "icecat<=${_ffver/0/99}")

  cd $srcdir
  rm $srcdir/*.xpi
  local _dir=$pkgdir/usr/lib/icecat/browser/extensions/ru@dictionaries.addons.mozilla.org
  mkdir -p "${_dir}"
  cd "${_dir}"
  sed -i 's#<em:maxVersion>.*</em:maxVersion>#<em:maxVersion>20.*</em:maxVersion>#' $srcdir/install.rdf
  cp -r $srcdir/* "${_dir}"
  find ${_dir} -type f -exec chmod 0644 {} \;
  touch ${_dir}/chrome.manifest
}