summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9693af30a4b1b26c718140039dea5297082ef636 (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
# Maintainer: Jesse Jaara	<gmail.com: jesse.jaara>
# Contributor: Janne Haapsaari	<iki.fi: haaja>

pkgname=hfstospell
pkgver=0.5.0
pkgrel=1
pkgdesc='Helsinki Finite-State Transducer Technology (HFST) tools'
arch=('i686' 'x86_64')
url='http://www.ling.helsinki.fi/kieliteknologia/tutkimus/hfst/'
license=('APACHE')
depends=('libxml++2.6' 'libarchive')
options=(!libtool)
source=(https://github.com/hfst/hfst-ospell/archive/v${pkgver}.tar.gz)
md5sums=('3bd03999cd4ec1365768c76713e0d0ef')

prepare() {
  cd "${srcdir}/hfst-ospell-${pkgver}"

  sed 's|UnicodeString|icu::UnicodeString|g' -i office.cc
  ./autogen.sh
}

build() {
  cd "${srcdir}/hfst-ospell-${pkgver}"

  ./configure --prefix=/usr

  make
}

package () {
  cd "${srcdir}/hfst-ospell-${pkgver}"

   make DESTDIR="${pkgdir}" install
}