summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b51319c9d1cbad5821cc7e7dcd6c00bbaaa25e71 (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
# Contributor: Kevin Brubeck Unhammer <unhammer@fsfe.org>
# Maintainer: Kevin Brubeck Unhammer <unhammer@fsfe.org>
pkgname=vislcg3
pkgver=1.0.0~r12200
pkgrel=2
pkgdesc="Compiler and parser for Constraint Grammar (CG), a paradigm for robust, rule-based Natural Language Parsing."
url="http://beta.visl.sdu.dk/cg3.html"
license=('GPL3')
makedepends=('boost' 'gperftools' 'cmake')
depends=('icu')
optdepends=('perl: cg3-autobin.pl auto-compile-and-run wrapper')
options=('!libtool')
arch=('i686' 'x86_64')
source=("http://beta.visl.sdu.dk/download/vislcg3/cg3-1.0.0~r12200.tar.bz2")
md5sums=('c71b7bbd86dc0450ac54dee926ff4561')
sha256sums=('a183db488b2a0252bff1dceab79753aab14ccfcae4349cc71fb6b13320e1c604')
install='vislcg3.install'

package () {
  cd "$srcdir/cg3"
  make DESTDIR="$pkgdir/" install
}

build() {
  cd "$srcdir/cg3"
  if [[ bug11145 = bug11145 ]]; then
      # https://svn.boost.org/trac/boost/ticket/11145
      ./get-boost.sh
      # fixed in https://github.com/boostorg/functional/commit/767673645e14aac6020ad45cc88cc4716c242851
      # so next boost ought to have this fixed
      ( cd ../.. && patch -p0 < icu_boost.diff )
  fi
  ./cmake.sh -D CMAKE_INSTALL_PREFIX=/usr && make
}