# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=c-ares pkgver=1.10.0 pkgrel=1 pkgdesc="An asynchronously DNS/names resolver library" url="http://c-ares.haxx.se/" arch="all" license="MIT" depends="" makedepends="" subpackages="$pkgname-doc $pkgname-dev" source="http://c-ares.haxx.se/download/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-shared \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 } md5sums="1196067641411a75d3cbebe074fd36d8 c-ares-1.10.0.tar.gz" sha256sums="3d701674615d1158e56a59aaede7891f2dde3da0f46a6d3c684e0ae70f52d3db c-ares-1.10.0.tar.gz" sha512sums="fef6945549034390ddaa03acf5509d0095e97c151e5f4047ffc32c51945a7261759228b20fdd77b9e4bf4a95f3a61bfb79bee0c66a860219debfd2916b390693 c-ares-1.10.0.tar.gz"