pkgname=c-ares pkgver=1.34.4 pkgrel=1 pkgdesc="A C library for asynchronous DNS requests" arch=('x86_64') url="https://c-ares.org" license=('MIT') depends=('glibc') makedepends=('cmake') source=(https://c-ares.haxx.se/download/${pkgname}-${pkgver}.tar.gz) sha256sums=(fa38dbed659ee4cc5a32df5e27deda575fa6852c79a72ba1af85de35a6ae222f) build() { cd ${pkgname}-${pkgver} local cmake_args=( -B flarebird-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64 -Wno-dev ) cmake ${cmake_args[@]} cmake --build flarebird-build } package() { cd ${pkgname}-${pkgver} DESTDIR=${pkgdir} cmake --install flarebird-build }