# Template file for 'c-ares' pkgname=c-ares version=1.18.1 revision=1 build_style=gnu-configure checkdepends="iana-etc" short_desc="C library that performs DNS requests and name resolves asynchronously" maintainer="Orphaned " license="MIT" homepage="https://c-ares.haxx.se/" changelog="https://c-ares.haxx.se/changelog.html" distfiles="${homepage}/download/${pkgname}-${version}.tar.gz" checksum=1a7d52a8a84a9fbffb1be9133c0f6e17217d91ea5a6fa61f6b4729cda78ebbcf make_check=ci-skip # segfaults only on CI pre_configure() { export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=?/} export CPPFLAGS+=" -D_FORTIFY_SOURCE=2" export CFLAGS=${CFLAGS/-I${XBPS_CROSS_BASE}\/usr\/include/} } post_install() { vlicense LICENSE.md LICENSE } c-ares-devel_package() { depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include vmove usr/lib/*.a vmove usr/lib/*.so vmove usr/lib/pkgconfig vmove usr/share/man } }