summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 164229cdd9dcbcc7e22438574e3c9422c02703ff (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
# Maintainer: Attila Fidan <archlinux-buildsystem@print0.net>

pkgname=mecab-ipadic-git
_gitname=mecab
pkgrel=1
pkgver=r155.05481e7

pkgdesc="Yet another Japanese morphological analyzer (IPADIC dictionary)"
url="https://taku910.github.io/mecab"
license=(GPL-2.0-only)
arch=(x86_64)

depends=(mecab)
makedepends=(git)

provides=(mecab-ipadic)
conflicts=(mecab-ipadic)

source=("git+https://github.com/taku910/mecab.git")
b2sums=('SKIP')

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_gitname/mecab-ipadic"
  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --with-charset=utf-8
  make
}

check() {
  cd "$_gitname/mecab-ipadic"
  make -k check
}

package() {
  cd "$_gitname/mecab-ipadic"
  make DESTDIR="$pkgdir/" install
}