blob: bda6198d33c03c15a63f5da78b44debed9463bf7 (
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
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Munzir Taha <munzirtaha at gmail dot com>
pkgname=hunspell-ar
pkgver=3.5
pkgrel=1
pkgdesc="Arabic dictionary for hunspell"
arch=(any)
url="http://ayaspell.sourceforge.net"
license=('GPL' 'LGPL' 'MPL')
optdepends=('hunspell: the spell checking libraries and apps')
source=(http://downloads.sourceforge.net/project/ayaspell/${pkgname}_${pkgver}.2014-11-08.zip)
sha256sums=('966faf94e7d05d52e9afdd20b266e28932edf5b32fe26aa83d554d6a2c6021ea')
build() {
/bin/true
}
package() {
cd "$srcdir"
install -d $pkgdir/usr/share/hunspell
install -D -m644 ar.dic ar.aff $pkgdir/usr/share/hunspell/
pushd $pkgdir/usr/share/hunspell/
ar_aliases="ar_AE ar_BH ar_DZ ar_EG ar_IN ar_IQ ar_JO ar_KW ar_LB ar_LY ar_MA ar_OM ar_QA ar_SA ar_SD ar_SY ar_TN ar_YE"
for lang in $ar_aliases; do
ln -s ar.aff $lang.aff
ln -s ar.dic $lang.dic
done
popd
# the symlinks
install -d $pkgdir/usr/share/myspell/dicts
pushd $pkgdir/usr/share/myspell/dicts
for file in $pkgdir/usr/share/hunspell/ar.*; do
ln -sv /usr/share/hunspell/$(basename $file) .
done
popd
# docs
install -d $pkgdir/usr/share/doc/$pkgname
install -m644 ChangeLog-?? README-?? AUTHORS TODO-?? "$pkgdir/usr/share/doc/$pkgname/"
}
|