diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4f8af4d213d6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Tue Mar 29 11:25:53 UTC 2016 +pkgbase = mecab-git + pkgdesc = Yet another part-of-speech and morphological analyzer. + pkgver = r144.32041d9 + pkgrel = 1 + url = https://taku910.github.io/mecab + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = git + provides = mecab + conflicts = mecab + source = git+https://github.com/taku910/mecab.git + sha512sums = SKIP + +pkgname = mecab-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0970894ad768 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Hideaki Takahashi (mymelo+aur@gmail.com) +# based on PKGBUILD for MeCab https://aur.archlinux.org/packages/mecab/ +pkgname=mecab-git +_pkgname=mecab +pkgrel=1 +pkgver=r144.32041d9 +pkgdesc="Yet another part-of-speech and morphological analyzer." +arch=('i686' 'x86_64') +url="https://taku910.github.io/mecab" +makedepends=('git') +conflicts=('mecab') +provides=('mecab') +license=('GPL2') +source=("git+https://github.com/taku910/mecab.git") +sha512sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${_pkgname}/mecab" + ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --with-charset=utf-8 + make +} + +check() { + cd "${_pkgname}/mecab" + make -k check +} + +package() { + cd "${_pkgname}/mecab" + make DESTDIR="$pkgdir/" install +} |