PKGBUILDs/community/firefox-spell-ru/PKGBUILD

30 lines
1 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Maciej Sitarz <macieks@freesco.pl>
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#<em:maxVersion>.*</em:maxVersion>#<em:maxVersion>3.*</em:maxVersion>#' $srcdir/install.rdf && \
cp -r $srcdir/* "${_dir}" && \
find ${_dir} -type f -exec chmod 0644 {} \; && \
touch ${_dir}/chrome.manifest
}