void-packages/srcpkgs/c-ares/template
2020-11-23 17:16:31 -03:00

33 lines
882 B
Bash

# Template file for 'c-ares'
pkgname=c-ares
version=1.17.1
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/"
changelog="https://c-ares.haxx.se/changelog.html"
distfiles="${homepage}/download/${pkgname}-${version}.tar.gz"
checksum=d73dd0f6de824afd407ce10750ea081af47eba52b8a6cb307d220131ad93fc40
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
}
}