36 lines
948 B
Bash
36 lines
948 B
Bash
# Template file for 'c-ares'
|
|
pkgname=c-ares
|
|
version=1.17.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
checkdepends="iana-etc"
|
|
short_desc="C library that performs DNS requests and name resolves asynchronously"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://c-ares.haxx.se/"
|
|
changelog="https://c-ares.haxx.se/changelog.html"
|
|
distfiles="${homepage}/download/${pkgname}-${version}.tar.gz"
|
|
checksum=4803c844ce20ce510ef0eb83f8ea41fa24ecaae9d280c468c582d2bb25b3913d
|
|
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
|
|
}
|
|
}
|