APP=c-ares
VERSION=1.16.1
BUILD=1sml
HOMEPAGE='https://c-ares.haxx.se/'
DOWNLOAD='https://c-ares.haxx.se/download/c-ares-1.16.1.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
"
