void-packages/srcpkgs/mdnsd/template

46 lines
1.0 KiB
Bash

# Template file for 'mdnsd'
pkgname=mdnsd
version=0.12
revision=2
build_style=gnu-configure
hostmakedepends="autoconf automake pkg-config libtool"
short_desc="Embeddable Multicast DNS Daemon"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/troglobit/mdnsd"
changelog="https://github.com/troglobit/mdnsd/raw/master/ChangeLog.md"
distfiles="https://github.com/troglobit/mdnsd/archive/v${version}.tar.gz"
checksum=3ff069f16bef5c19b97386a3da5f1524d8cddf41157c75f220eeb9a81869dc82
conf_files="
/etc/mdns.d/ssh.service"
conflicts="mDNSResponder"
pre_configure() {
./autogen.sh
}
post_install() {
rm ${DESTDIR}/usr/share/doc/mdnsd/LICENSE
vsv mdnsd
vlicense LICENSE
}
libmdnsd_package() {
short_desc+=" - library"
pkg_install() {
vmove "usr/lib/*.so.*"
vlicense LICENSE
}
}
libmdnsd-devel_package() {
depends="libmdnsd>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}