# Template file for 'marisa'
pkgname=marisa
version=0.3.1
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON -DENABLE_NATIVE_CODE=OFF -DBUILD_TESTING=OFF"
hostmakedepends="pkg-config"
short_desc="Matching Algorithm with Recursively Implemented StorAge"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause, LGPL-2.1-or-later"
homepage="https://github.com/s-yata/marisa-trie"
distfiles="https://github.com/s-yata/marisa-trie/archive/refs/tags/v${version}.tar.gz"
checksum=986ed5e2967435e3a3932a8c95980993ae5a196111e377721f0849cad4e807f3

pre_configure() {
	vsed -i 's/CONFIGURATIONS Release//g' CMakeLists.txt
}

post_install() {
	vlicense COPYING.md
}

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