void-packages/srcpkgs/c-ares/template

33 lines
845 B
Bash

# Template file for 'c-ares'
pkgname=c-ares
version=1.11.0
revision=1
build_style=gnu-configure
short_desc="C library that performs DNS requests and name resolves asynchronously"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://c-ares.haxx.se/"
distfiles="http://c-ares.haxx.se/download/$pkgname-$version.tar.gz"
checksum=b3612e6617d9682928a1d50c1040de4db6519f977f0b25d40cf1b632900b3efd
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/}
}
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
}
}