blob: bf185a21d43ab7e32abaf454c54adfc218dbc44a (
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: Mélanie Chauvel (ariasuni) <perso@hack-libre.org>
# Based on hunspell-de PKGBUILD
pkgname=hunspell-de-base
pkgver=20161207
pkgrel=1
pkgdesc="German hunspell dictionaries, no de_BE, de_LI and de_LU symlinks"
arch=('any')
url="http://www.j3e.de/ispell/igerman98/"
license=('GPL')
makedepends=('hunspell' 'ispell')
optdepends=('hunspell: the spell checking libraries and apps')
provides=('hunspell-de')
conflicts=('hunspell-de')
source=("https://www.j3e.de/ispell/igerman98/dict/igerman98-$pkgver.tar.bz2")
sha256sums=('17296f03c5fea62d76ecc530ebe80f6adc430278f58d472dc1842d71612960a8')
build() {
cd "$srcdir/igerman98-$pkgver"
make hunspell/de_AT.dic hunspell/de_AT.aff \
hunspell/de_CH.dic hunspell/de_CH.aff \
hunspell/de_DE.dic hunspell/de_DE.aff
}
package() {
cd "$srcdir/igerman98-$pkgver/hunspell"
install -dm755 ${pkgdir}/usr/share/hunspell
cp -p de_??.dic de_??.aff $pkgdir/usr/share/hunspell
# the symlinks
install -dm755 ${pkgdir}/usr/share/myspell/dicts
pushd $pkgdir/usr/share/myspell/dicts
for file in $pkgdir/usr/share/hunspell/*; do
ln -sv /usr/share/hunspell/$(basename $file) .
done
popd
# docs
install -dm755 ${pkgdir}/usr/share/doc/$pkgname
cp -p README_de_??.txt $pkgdir/usr/share/doc/$pkgname
}
|