# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=c-ares pkgver=1.19.1 pkgrel=1 pkgdesc="Asynchronous DNS/names resolver library" url="https://c-ares.org/" arch="all" options="!check" license="MIT" subpackages="$pkgname-doc $pkgname-static $pkgname-dev $pkgname-utils" source="https://c-ares.haxx.se/download/c-ares-$pkgver.tar.gz" # secfixes: # 1.17.2-r0: # - CVE-2021-3672 build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-shared make } check() { # This is only needed for < 1.14.0, where the .sh file was not # distributed properly - see https://da.gd/carestest echo "#!/bin/true" > test/fuzzcheck.sh chmod a+x test/fuzzcheck.sh make -C test check } package() { make DESTDIR="$pkgdir" install cd src/tools install -Dm755 -t "$pkgdir"/usr/bin \ acountry adig ahost } utils() { amove usr/bin } sha512sums=" 466a94efda626e815a6ef7a890637056339f883d549ea6055e289fd8cd2391130e5682c905c0fb3bd7e955af7f6deb793562c170eb0ee066a4a62085a82ba470 c-ares-1.19.1.tar.gz "