void-packages/srcpkgs/udns/template

46 lines
1.0 KiB
Bash
Raw Normal View History

2015-04-12 11:20:14 +02:00
# Template file for 'udns'
pkgname=udns
version=0.4
2015-04-12 11:23:46 +02:00
revision=2
2015-04-12 11:20:14 +02:00
build_style=configure
2015-04-12 11:23:46 +02:00
short_desc="Asynchronous DNS resolver library"
2015-04-12 11:20:14 +02:00
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL-2"
homepage="http://www.corpit.ru/mjt/udns.html"
distfiles="http://www.corpit.ru/mjt/udns/udns-${version}.tar.gz"
checksum=115108dc791a2f9e99e150012bcb459d9095da2dd7d80699b584ac0ac3768710
configure_args="--enable-ipv6"
make_build_target="shared"
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"
}
}