# Template build file for 'libidn'.
pkgname=libidn
version=1.28
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@gmail.com>"
homepage="http://www.gnu.org/software/libidn/"
license="GPL-3, LGPL-2.1"
distfiles="http://ftp.gnu.org/gnu/libidn/libidn-${version}.tar.gz"
checksum=dd357a968449abc97c7e5fa088a4a384de57cb36564f9d4e0d898ecc6373abfb

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"
	}
}
