# Template build file for 'libidn'.
pkgname=libidn
version=1.33
revision=2
build_style=gnu-configure
configure_args="--disable-csharp --disable-java --disable-static --enable-threads=posix"
hostmakedepends="perl pkg-config automake libtool gettext-devel"
short_desc="Internationalized string handling library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.gnu.org/software/libidn/"
license="GPL-3, LGPL-2.1"
distfiles="${GNU_SITE}/libidn/libidn-${version}.tar.gz"
checksum=44a7aab635bb721ceef6beecc4d49dfd19478325e1b47f3196f7d2acc4930e19

pre_configure() {
	autoreconf -fi
}

libidn-devel_package() {
	depends="libidn>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/man/man3
		vmove usr/share/emacs
		vmove usr/share/info
		vmove "usr/lib/*.so"
	}
}
