void-packages/srcpkgs/libdnet/template

34 lines
866 B
Bash

# Template file for 'libdnet'
pkgname=libdnet
version=1.12
revision=1
hostmakedepends="automake libtool autoconf pkg-config"
wrksrc="libdnet-libdnet-${version}"
build_style=gnu-configure
short_desc="A portable interface to low level networking routines"
maintainer="Carson Page <pagem.carson@gmail.com>"
homepage="https://github.com/dugsong/libdnet"
distfiles="https://github.com/dugsong/libdnet/archive/libdnet-${version}.tar.gz"
license="BSD"
checksum=b6360659c93fa2e3cde9e0a1fc9c07bc4111f3448c5de856e095eb98315dd424
pre_configure() {
autoreconf -I config --force --install
}
post_install() {
vlicense LICENSE
}
libdnet-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/share/man/man3
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.la"
vmove "usr/lib/*.so"
}
}