void-packages/srcpkgs/udns/template

46 lines
1.0 KiB
Bash

# Template file for 'udns'
pkgname=udns
version=0.4
revision=3
build_style=configure
configure_args="--enable-ipv6"
make_build_target="shared"
short_desc="Asynchronous DNS resolver library"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL-2.1-or-later"
homepage="http://www.corpit.ru/mjt/udns.html"
distfiles="http://www.corpit.ru/mjt/udns/udns-${version}.tar.gz"
checksum=115108dc791a2f9e99e150012bcb459d9095da2dd7d80699b584ac0ac3768710
pre_configure() {
sed -i \
-e "/is not a working compiler/c\ac_result yes" \
-e "/no working C compiler found/c\ac_result yes" configure.lib
}
do_install() {
vbin dnsget_s dnsget
vbin rblcheck_s rblcheck
vbin ex-rdns_s ex-rdns
vinstall udns.h 644 usr/include
vinstall libudns.so.0 755 usr/lib
vman dnsget.1
vman rblcheck.1
vman udns.3
vmkdir $DESTDIR/usr/lib
ln -s libudns.so.0 $DESTDIR/usr/lib/libudns.so
}
udns-devel_package() {
depends="udns>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/share/man/man3
vmove usr/include
vmove "usr/lib/*.so"
}
}