# Description: Provides support for IETF Internationalized Domain Names (IDN).
# URL: http://www.gnu.org/software/libidn/
# Maintainer: Juergen Daubert, jue at crux dot nu

name=libidn
version=1.42
release=1
source=(https://ftp.gnu.org/gnu/libidn/libidn-$version.tar.gz)

build() {
	cd $name-$version

	./configure \
		--prefix=/usr \
		--disable-nls

	make
	make DESTDIR=$PKG install

	install -d $PKG/usr/share/man/man{1,3}
	install -m 0644 doc/*.1 $PKG/usr/share/man/man1
	install -m 0644 doc/man/*.3 $PKG/usr/share/man/man3
	rm -r $PKG/usr/share/{info,emacs}
}
