summaryrefslogtreecommitdiff
path: root/pcr/apertium/PKGBUILD
blob: 0fc6fc1d45dabdbe677041f8860ab4a6a1f56d5a (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
# Contributor (AUR): Kevin Brubeck Unhammer <unhammer@fsfe.org>
# Maintainer (AUR): Kevin Brubeck Unhammer <unhammer@fsfe.org>

# parabola changes and rationale:
#  no changes


pkgname=apertium
pkgver=3.5.1
pkgrel=1
pkgdesc="Language-independent machine translation engine and tools to manage language data."
url="http://apertium.org"
license=('GPL2')
makedepends=('flex' 'git' 'pkgconfig')
depends=('lttoolbox>=3.3.3' 'pcre' 'gawk' 'expat' 'libxslt')
options=('!libtool')
arch=('i686' 'x86_64' 'armv7h')
source=(git://github.com/apertium/apertium.git#tag=v${pkgver}
        git://github.com/unhammer/apertium-get.git)
md5sums=('SKIP' 'SKIP')


prepare() {
  cd "$srcdir/$pkgname"

  git submodule init
  git config submodule.apertium-get.url $srcdir/apertium-get
  git submodule update
}

build() {
  cd "$srcdir/$pkgname"

  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname"

  make DESTDIR="$pkgdir/" install
}