# Template file for 'librime'
pkgname=librime
version=1.11.2
revision=1
build_style=cmake
configure_args="-DCMAKE_BUILD_TYPE=None -DENABLE_LOGGING=OFF -DBUILD_TEST=ON"
hostmakedepends="pkg-config capnproto"
makedepends="boost-devel leveldb-devel marisa-devel opencc-devel
 yaml-cpp-devel gtest-devel capnproto-devel xorgproto lua54-devel"
short_desc="Rime Input Method Engine"
maintainer="Yuxuan Shui <yshuiv7@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/rime/librime"
distfiles="https://github.com/rime/librime/archive/${version}.tar.gz"
checksum=0a3f507d11aeb137de08e90fd319714533caf210b97223d8a12994db215684b5

post_install() {
	vlicense LICENSE
}

librime-devel_package() {
	depends="librime-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		vmove usr/share/cmake
	}
}
