# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=c-ares pkgver=1.16.0 pkgrel=0 pkgdesc="An asynchronously DNS/names resolver library" url="https://c-ares.haxx.se/" arch="all" options="!check" license="MIT" subpackages="$pkgname-doc $pkgname-static $pkgname-dev" source="https://c-ares.haxx.se/download/c-ares-$pkgver.tar.gz" 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 -j1 DESTDIR="$pkgdir" install } sha512sums="9f5def3206d61682e66c2173b18a8dd76138e6eb53bfe06a5830408cce9a70895d2148be23064ff18e0fd25b4f4b2c3cfe77e040744cc80dcce6ffec3ea534a9 c-ares-1.16.0.tar.gz"