blob: 43326029e22dc490e051e9f38d865825a9da3142 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $Id: PKGBUILD 109025 2011-02-05 13:53:55Z andyrtr $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgbase=hspell
pkgname=('hspell' 'hunspell-he')
pkgver=1.1
pkgrel=1
arch=(i686 x86_64 'mips64el')
license=('GPL')
url="http://www.ivrix.org.il/projects/spell-checker/"
makedepends=('glibc' 'zlib' 'perl' 'hunspell' 'gawk')
options=('!libtool' '!makeflags')
source=(http://hspell.ivrix.org.il/${pkgname}-${pkgver}.tar.gz
hspell-1.0.sharedlib.patch)
md5sums=('e79e75180ce529c008ea085954a52f2c'
'0df6764bb37500ee936b9355fee0c7a5')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i ${srcdir}/hspell-1.0.sharedlib.patch
autoreconf -v
sed -i -e 's|/usr/bin/awk|/bin/awk|' wzip
./configure --prefix=/usr --mandir=/usr/share/man \
--enable-linginfo --enable-fatverb
make
make hunspell
}
package_hspell() {
pkgdesc="Hebrew spell-checker"
depends=('glibc' 'zlib' 'perl')
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -f ${pkgdir}/usr/lib/libhspell.a
}
package_hunspell-he() {
pkgdesc="Hebrew hunspell dictionary"
cd "${srcdir}/${pkgname}-${pkgver}"
install -dm755 ${pkgdir}/usr/share/hunspell
cp -p hunspell/new_he.dic ${pkgdir}/usr/share/hunspell/he_IL.dic
cp -p hunspell/new_he.aff ${pkgdir}/usr/share/hunspell/he_IL.aff
# 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
}
|