# Template file for 'fasttext'
pkgname=fasttext
version=0.9.2
revision=1
build_style=cmake
short_desc="Library for efficient text classification and representation learning"
maintainer="John <me@johnnynator.dev>"
license="MIT"
homepage="https://fasttext.cc/"
distfiles="https://github.com/facebookresearch/fastText/archive/v${version}.tar.gz"
checksum=7ea4edcdb64bfc6faaaec193ef181bdc108ee62bb6a04e48b2e80b639a99e27e

post_install() {
	vlicense LICENSE
}

fasttext-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove "usr/lib/pkgconfig"
	}
}
