# Template file for 'liblcf'
pkgname=liblcf
version=0.6.2
revision=4
build_style=gnu-configure
hostmakedepends="pkg-config autoconf automake libtool"
makedepends="expat-devel icu-devel"
short_desc="Library to handle RPG Maker 2000/2003 and EasyRPG projects"
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
license="MIT"
homepage="https://github.com/EasyRPG/liblcf"
distfiles="https://github.com/EasyRPG/liblcf/archive/${version}.tar.gz"
checksum=ed1371a0f116be2d674ec6c4bebc0d6578a3a5e886d1ffdb2aaaca952d2569b1

pre_configure() {
	autoreconf -i
}

post_install() {
	vlicense COPYING
}

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