37 lines
902 B
Bash
37 lines
902 B
Bash
# Template file for 'c-ares'
|
|
pkgname=c-ares
|
|
version=1.16.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
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/"
|
|
distfiles="https://c-ares.haxx.se/download/${pkgname}-${version}.tar.gz"
|
|
checksum=de058ad7c128156e2db6dc98b8a359924d6f210a1b99dd36ba15c8f839a83a89
|
|
|
|
pre_configure() {
|
|
case "$CFLAGS" in
|
|
*"-D_FORTIFY_SOURCE=2"*)
|
|
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=?/}
|
|
export CPPFLAGS+=" -D_FORTIFY_SOURCE=2"
|
|
;;
|
|
esac
|
|
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
|
|
}
|
|
}
|
|
|