summaryrefslogtreecommitdiff
path: root/libre/iceweasel-spell-ru/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/iceweasel-spell-ru/PKGBUILD')
-rw-r--r--libre/iceweasel-spell-ru/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/libre/iceweasel-spell-ru/PKGBUILD b/libre/iceweasel-spell-ru/PKGBUILD
new file mode 100644
index 000000000..b9bb8b6f9
--- /dev/null
+++ b/libre/iceweasel-spell-ru/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 90907 2013-05-15 13:06:09Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Maciej Sitarz <macieks@freesco.pl>
+
+pkgname=iceweasel-spell-ru
+pkgver=0.4.4
+pkgrel=13.1
+pkgdesc="Russian spellchecker dictionary for Iceweasel"
+arch=(any)
+url="https://addons.mozilla.org/firefox/dictionaries/"
+license=("GPL")
+depends=("iceweasel-libre")
+provides=(firefox-spell-ru=$pkgver)
+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 iceweasel-libre | cut -f2 -d\ | cut -f1 -d-`
+# depends=("iceweasel-libre>=${_ffver}" "iceweasel-libre<=${_ffver/0/99}")
+
+ cd $srcdir
+ rm $srcdir/*.xpi
+ local _dir=$pkgdir/usr/lib/iceweasel/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
+}