void-packages/srcpkgs/libasyncns/template

38 lines
1.2 KiB
Text

# Template file for 'libasyncns'
pkgname=libasyncns
version=0.8
revision=6
build_style=gnu-configure
configure_args="CFLAGS=-fPIC"
short_desc="C library for executing name service queries asynchronously"
homepage="http://0pointer.de/lennart/projects/libasyncns/"
license="LGPL-2.1"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="http://0pointer.de/lennart/projects/$pkgname/$pkgname-$version.tar.gz"
checksum=4f1a66e746cbe54ff3c2fbada5843df4fbbbe7481d80be003e8d11161935ab74
long_desc="
libasyncns is a C library for Linux/Unix for executing name service queries
asynchronously. It is an asynchronous wrapper around getaddrinfo(3),
getnameinfo(3), res_query(3) and res_search(3) from libc and libresolv.
In contrast to GNU's asynchronous name resolving API getaddrinfo_a(),
libasyncns does not make use of UNIX signals for reporting completion of
name queries. Instead, the API exports a standard UNIX file descriptor which
may be integerated cleanly into custom main loops."
libasyncns-devel_package() {
depends="libasyncns>=${version}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}
libasyncns_package() {
pkg_install() {
vmove usr
}
}