summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2efa78a8b5acb18238c6bdd1787c2c72ed15b72c (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
# Maintainer: envolution
# Contributor: Max Bruckner (FSMaxB)
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=mecab-ipadic
pkgver=2.7.0_20070801
pkgrel=7
pkgdesc="IPA dictionary for mecab"
arch=('any')
url="https://taku910.github.io/mecab"
depends=('mecab')
license=(GPL-2.0-only)
#source=("$pkgname-${pkgver/_/-}.tar.gz::https://drive.google.com/uc?id=0B4y35FiV1wh7MWVlSDBCSXZMTXM&export=download")
_tag="2fd29256c6d5e1b10211cac838069ee9ede8c77a"
source=("$pkgname::git+https://github.com/taku910/mecab.git#tag=${_tag}")
md5sums=('5e33399fd830b3c3f66cd4b5c366c989')

build() {
  cd "$pkgname/$pkgname"
  ./configure --libexecdir=/usr/lib --prefix=/usr --with-charset=utf-8
  # change (several) hardcoded mecab installation paths
  sed -i "s|^MECAB_DICT_INDEX =.*|MECAB_DICT_INDEX = /usr/lib/mecab/mecab-dict-index|g" Makefile
  sed -i "s|^mecab_dict_index =.*|mecab_dict_index = /usr/lib/mecab/mecab-dict-index|g" Makefile
  sed -i "s|^MECAB_DICT_INDEX=.*|MECAB_DICT_INDEX=/usr/lib/mecab/mecab-dict-index|g" configure
  sed -i "s|/usr/libexec|/usr/lib|g" config.status
  make
}

package() {
  cd "$pkgname/$pkgname"
  make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et: