# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: 
pkgname=libidn
pkgver=1.38
pkgrel=0
pkgdesc="Library for internationalized domain names"
url="https://www.gnu.org/software/libidn/"
arch="all"
license="(GPL-2.0+ OR LGPL-3.0+) AND GPL-3.0+"
depends=""
checkdepends="diffutils"
makedepends=""
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
source="https://ftp.gnu.org/gnu/libidn/$pkgname-$pkgver.tar.gz"

# secfixes:
#   1.33-r0:
#   - CVE-2015-8948
#   - CVE-2016-6261
#   - CVE-2016-6262
#   - CVE-2016-6263

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5e59b2263fde44d1463b47b516347b17a4e3e3696ebba66ab5fe464d567e2ec81f769fa7cf72ed51cfb501e32221813bb375373713a47e2f599fc6122850e419  libidn-1.38.tar.gz"