# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Leewings Ng <osideal@gmail.com>
# Contributor: Hiroshi Yui <hiroshiyui@gmail.com>

pkgname=ibus-table-chinese
pkgver=1.8.13
pkgrel=1
pkgdesc="Some table-based input method of tables engines for IBus"
arch=('any')
url="https://github.com/mike-fabian/ibus-table-chinese"
license=('GPL3')
depends=('ibus-table')
makedepends=('git' 'cmake')
source=("git+https://github.com/mike-fabian/ibus-table-chinese.git#tag=$pkgver")
sha512sums=('704c9925a0f92fff26cb5b8d598e5abbc97181e2461fb0da9c0a02d52ef44c9db38600273b31e9880856ffabc37754c67f4f853b05bb126727fdbba81a689db2')

build() {
  cd $pkgname
  cmake . -DDATA_DIR=/usr/share -DPRJ_DOC_DIR=/usr/share/doc/$pkgname -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_POLICY_VERSION_MINIMUM=3.5
  make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
}
