blob: dd7e972457fd8ef12cc4821b76c25ee8582c8d32 (
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
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=hyphen
pkgver=2.8.8
pkgrel=1
pkgdesc="Library for high quality hyphenation and justification"
url="http://hunspell.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later LGPL-2.0-or-later MPL-1.1"
subpackages="$pkgname-dev $pkgname-en"
depends_dev="perl"
makedepends="$depends_dev"
source="https://downloads.sourceforge.net/hunspell/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static \
--disable-dependency-tracking \
--enable-fast-install
make
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
}
dev() {
default_dev
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}
en() {
pkgdesc="English hyphenation rules"
depends="hyphen"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/share "$subpkgdir"/usr
for lang in en_AG en_AU en_BS en_BW en_BZ en_CA en_DK en_GB en_GH en_HK en_IE en_IN en_JM en_NA en_NZ en_PH en_SG en_TT en_ZA en_ZW; do
ln -s hyph_en_US.dic "$subpkgdir"/usr/share/hyphen/hyph_$lang.dic
done
}
md5sums="5ade6ae2a99bc1e9e57031ca88d36dad hyphen-2.8.8.tar.gz"
sha256sums="304636d4eccd81a14b6914d07b84c79ebb815288c76fe027b9ebff6ff24d5705 hyphen-2.8.8.tar.gz"
sha512sums="ee514952be56869840b70fb74f60eba14dc4de246733ff8705492367e8cf00c485f8778a9d5a7ba374c988d4ac9fedbe75826dc559e1b62465dbfba21f6ce7de hyphen-2.8.8.tar.gz"
|