2013-05-27 18:49:39 +00:00
|
|
|
# Template file for 'c-ares'
|
|
|
|
pkgname=c-ares
|
|
|
|
version=1.10.0
|
2015-04-04 16:05:03 +00:00
|
|
|
revision=3
|
2013-05-27 18:49:39 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
short_desc="C library that performs DNS requests and name resolves asynchronously"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-05-27 18:49:39 +00:00
|
|
|
license="MIT"
|
|
|
|
homepage="http://c-ares.haxx.se/"
|
|
|
|
distfiles="http://c-ares.haxx.se/download/$pkgname-$version.tar.gz"
|
|
|
|
checksum=3d701674615d1158e56a59aaede7891f2dde3da0f46a6d3c684e0ae70f52d3db
|
|
|
|
|
2015-04-04 16:05:03 +00:00
|
|
|
pre_configure() {
|
|
|
|
case "$CFLAGS" in
|
|
|
|
*"-D_FORTIFY_SOURCE=2"*)
|
|
|
|
CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
|
|
|
|
CPPFLAGS+=" -D_FORTIFY_SOURCE=2"
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2013-05-27 18:49:39 +00:00
|
|
|
c-ares-devel_package() {
|
2014-05-25 10:07:40 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-05-27 18:49:39 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2014-05-25 10:07:40 +00:00
|
|
|
vmove usr/lib/*.a
|
|
|
|
vmove usr/lib/*.so
|
2013-05-27 18:49:39 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/man
|
|
|
|
}
|
|
|
|
}
|