updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / firefox-spell-ru-en / PKGBUILD
bloba15d9c83da19343614309e1dd4bcb98c9c938dbc
1 # Contributor: Nazarov Pavel <genocid@rambler.ru>
3 pkgname=firefox-spell-ru-en
4 pkgver=1.0.0.1
5 _ffver=5.0
6 pkgrel=6
7 pkgdesc="Russian/English spellchecker dictionary for Firefox"
8 arch=(any)
9 url="http://ftp.mozilla-russia.org/dictionaries/"
10 license=("GPL")
11 depends=("firefox")
12 noextract=(http://ftp.mozilla-russia.org/dictionaries/ru-en_spell_dictionary.xpi)
13 source=(http://ftp.mozilla-russia.org/dictionaries/ru-en_spell_dictionary.xpi)
14 md5sums=('a8f1658e194084038f86b98fad3b0e54')
16 build() {
17   cd $srcdir && \
18   rm $srcdir/*.xpi
20   local _dir=$pkgdir/usr/lib/firefox-${_ffver}/extensions/ru-en@dictionaries.addons.mozilla.org
21   mkdir -p "${_dir}"
22   cd "${_dir}" && \
23   sed -i 's#<em:maxVersion>.*</em:maxVersion>#<em:maxVersion>5.0.*</em:maxVersion>#' $srcdir/install.rdf && \
24   cp -r $srcdir/* "${_dir}" && \
25   find ${_dir} -type f -exec chmod 0644 {} \; && \
26   touch ${_dir}/chrome.manifest