void-packages/srcpkgs/libvoikko/template

31 lines
884 B
Bash

# Template file for 'libvoikko'
pkgname=libvoikko
version=4.2
revision=2
build_style=gnu-configure
configure_args="--enable-hfst=false --with-dictionary-path=/usr/share/voikko"
pycompile_module="libvoikko.py"
hostmakedepends="python3"
short_desc="Free linguistic software and data for Finnish"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://voikko.puimula.org/"
distfiles="https://www.puimula.org/voikko-sources/libvoikko/${pkgname}-${version}.tar.gz"
checksum=f13c59825f36152f388cd96f638e447744199775277f4e6bcd0b9483f0eebeca
post_install() {
vmkdir ${py3_sitelib}
cp python/libvoikko.py ${DESTDIR}/${py3_sitelib}
}
libvoikko-devel_package() {
depends="libvoikko-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}