summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef6a26aaffd6a2df09b1a65ca66aa6023cb5625c (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
# Maintainer: nosada <ngsksdt@gmail.com>

# This package requires too large space (around 3GB).
# You should check having enough space on your storage.

pkgname=knp
pkgver=4.12
pkgrel=1
pkgdesc="KN parser (Kurohashi-Nagao parser) which detects dependency of Japanese sentences"
url="http://nlp.ist.i.kyoto-u.ac.jp/index.php?KNP"
arch=("x86_64" "i686")
license=("custom")
depends=("juman>=7.0" "tinycdb")      # if you want to use named entity extraction, append 'crfpp' in 'depends' line
source=("http://nlp.ist.i.kyoto-u.ac.jp/nl-resource/knp/${pkgname}-${pkgver}.tar.bz2")
sha1sums=("715246971b758330714e27348e83cd95b1fa7feb")

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  ./configure --prefix=/usr
  # if you want to use named entity extraction, comment out above and uncomment below
  #./configure --prefix=/usr --with-crf
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}

  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}

# vim:set ts=2 sw=2 et: