blob: 5dcc5503e43e42053476e7086c49ed1c32266b03 (
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
58
59
60
61
62
63
64
65
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Frankie Robertson <frankie@robertson.name>
# Maintainer:
pkgname=hfst
pkgver=3.9.1
pkgrel=0
pkgdesc="Helsinki Finite-State Transducer Technology toolkit"
url="http://www.ling.helsinki.fi/kieliteknologia/tutkimus/$pkgname/"
arch="all"
license="LGPL3"
depends=""
depends_dev=""
makedepends="$depends_dev python bison python2-dev swig"
install=""
subpackages="$pkgname-dev $pkgname-doc py-$pkgname:py"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
missing_unistd_include.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
default_prepare || return 1
update_config_sub || return 1
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--enable-proc \
--without-foma \
--enable-lexc \
--enable-all-tools \
|| return 1
make -j1 || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd python || return 1
python2 setup.py install \
--prefix=/usr --root="$pkgdir" || return 1
}
py() {
pkgdesc="$pkgdesc (python bindings)"
depends="python"
mkdir -p "$subpkgdir"/usr/lib/
cp -r "$pkgdir"/usr/lib/python2* "$subpkgdir"/usr/lib/
}
md5sums="3d7a54b6ce67d180545d599b7d9fa7c9 hfst-3.9.1.tar.gz
4aef69581668aa22cf1e93cbd6493030 missing_unistd_include.patch"
sha256sums="fa55eab71d86ffebe75ed28476d76cb6bcde51dbc73064a8ef1db7112d2985ec hfst-3.9.1.tar.gz
158d633416a482308f420c6d9e3c8648f96238fc7209d70055e629a0ff978b80 missing_unistd_include.patch"
sha512sums="2d0d4acd132cb4a41c4a1f259b2556ac3ce352158ad88ea2312d056e1942dd2d5d0968e86ee62e00aca36fb757371657d0466132ae3576b70962f5313357df44 hfst-3.9.1.tar.gz
0bfc63709dbefaaa4084bf78d169283a58ab4ee586e800446f5d92ee179d4c84959802f54e72ffa5366c49a2a30883deb54c562c9dcace21662d5cbdd06789d6 missing_unistd_include.patch"
|