# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Sergej Pupykin # Contributor: Maciej Sitarz pkgname=firefox-spell-ru pkgver=0.4.2 _ffver=3.5 pkgrel=3 pkgdesc="Russian spellchecker dictionary for Firefox" arch=(i686 x86_64) url="https://addons.mozilla.org/firefox/dictionaries/" license=("GPL") depends=("firefox") noextract=(russian_spellchecking_dictionary_with_io_support-$pkgver-fx+tb+sm.xpi) source=(https://addons.mozilla.org/en-US/firefox/downloads/file/41290/russian_spellchecking_dictionary-$pkgver-fx+tb+sm.xpi) md5sums=('da1a2f20afd88c2ab3d1ef9399345e4e') build() { cd $srcdir && \ rm $srcdir/*.xpi local _dir=$pkgdir/usr/lib/firefox-${_ffver}/extensions/ru@dictionaries.addons.mozilla.org mkdir -p "${_dir}" cd "${_dir}" && \ sed -i 's#.*#3.*#' $srcdir/install.rdf && \ cp -r $srcdir/* "${_dir}" && \ find ${_dir} -type f -exec chmod 0644 {} \; && \ touch ${_dir}/chrome.manifest }