blob: a29064d56205c32fe50cde1cdd1e264797aa35e8 (
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 151262 2012-02-25 10:23:43Z allan $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgbase=hspell
pkgname=('hspell' 'hunspell-he')
pkgver=1.1
pkgrel=2
arch=('i686' 'x86_64')
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}/${pkgbase}-${pkgver}"
install -dm755 ${pkgdir}/usr/share/hunspell
install -m644 hunspell/new_he.dic ${pkgdir}/usr/share/hunspell/he_IL.dic
install -m644 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
}
|