blob: 01dce5551fa0c2e0aa892292c590b5e1f388d817 (
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
31
|
# $Id: PKGBUILD 129457 2015-03-18 10:50:28Z spupykin $
# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor (Arch): Maciej Sitarz <macieks@freesco.pl>
pkgname=iceweasel-spell-ru
pkgver=0.4.5
pkgrel=1.1
pkgdesc="Russian spellchecker dictionary for Iceweasel"
arch=(any)
url="https://addons.mozilla.org/firefox/dictionaries/"
license=("GPL")
depends=("iceweasel")
replaces=('firefox-spell-ru')
#noextract=(addon-$pkgver-an+fx+tb+fn+sm.xpi)
source=(https://addons.cdn.mozilla.net/user-media/addons/3703/addon-$pkgver-an+fx+tb+fn+sm.xpi)
md5sums=('05dbd25d73e3e4187ec51517658fcf69')
package() {
# _ffver=`pacman -Q iceweasel | cut -f2 -d\ | cut -f1 -d-`
# depends=("iceweasel>=${_ffver}" "iceweasel<=${_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
}
|