### this file is sourced not run
PKGVER=1.41
PKGBUILD=1
PKGARCH=x86_64

# source: james / BLFS 11.3
TARBALL=libidn-$PKGVER.tar.gz
MD5SUM=2cbff2f75f904328ac507af576b07197
SRC_URL=http://ftp.gnu.org/gnu/libidn/$TARBALL
BUNDLE=

SLACKREQ='' 
SLACKDESC="libidn: libidn $PKGVER (IDN Decode/Encode library)
libidn: 
libidn: GNU Libidn is a fully documented implementation of the Stringprep, 
libidn: Punycode and IDNA specifications. Libidn's purpose is to encode and 
libidn: decode internationalized domain names. The library contains a generic 
libidn: Stringprep implementation. Profiles for Nameprep, iSCSI, SASL, XMPP 
libidn: and Kerberos V5 are included. Punycode and ASCII Compatible Encoding 
libidn: (ACE) via IDNA are supported.
libidn: 
libidn: https://www.gnu.org/software/libidn/
libidn: 

"

### default pkg_download
### default prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static"
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	# doc
	find doc -name "Makefile*" -delete            &&
	rm -rf -v doc/{gdoc,idn.1,stamp-vti,man,texi} &&
	mkdir -v       /usr/share/doc/libidn-$PKGVER  &&
	cp -r -v doc/* /usr/share/doc/libidn-$PKGVER
}

