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

pkgname=hfstospell-git
pkgver=0.4.5.r0.gd791a41
pkgrel=1
pkgdesc='Helsinki Finite-State Transducer Technology (HFST) tools'
arch=('i686' 'x86_64')
url='https://hfst.github.io/'
license=('APACHE')
depends=('libxml++2.6' 'libarchive' 'icu')
makedepends=('git')
provides=(${pkgname%-*}=$pkgver)
conflicts=(${pkgname%-*})
options=(!libtool)
source=('hfstospell-git::git+https://github.com/hfst/hfst-ospell.git')
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$pkgname"
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package () {
   cd "$pkgname"
   make DESTDIR="${pkgdir}" install
}