app=c-ares
version=1.16.1
build=1sml
homepage="https://c-ares.haxx.se/"
download="https://c-ares.haxx.se/download/c-ares-$version.tar.gz"
desc="C library for asynchronous DNS requests including name resolves"
requires="musl"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --enable-shared

  make
  make install DESTDIR=$pkg 

  cp $srcdir/LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
4ac2a5d5c6da74eb1d6155c4eadc7127ab1b53a8d13caec41bd6172db5417a79f3ab022e77ba37d8b13da6893d7ced5fd8baf5cc3950a4154b4de8743ad31471  c-ares-1.16.1.tar.gz
"
