# Template file for 'libticonv'
pkgname=libticonv
version=1.1.5
revision=2
_tilpver=1.18
build_style=gnu-configure
configure_args="--enable-iconv"
hostmakedepends="automake bison groff intltool libtool pkg-config"
makedepends="glib-devel"
short_desc="TI character set conversion library"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://www.ticalc.org"
distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2"
checksum=316da6a73bf26b266dd23443882abc4c9fe7013edc3a53e5e301d525c2060878

pre_configure() {
	mkdir -p m4
	autoreconf -i -v -f
}

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