void-packages/srcpkgs/libdnet/template

35 lines
903 B
Bash

# Template file for 'libdnet'
pkgname=libdnet
version=1.12
revision=2
wrksrc="libdnet-libdnet-${version}"
build_style=gnu-configure
hostmakedepends="automake libtool autoconf pkg-config"
short_desc="A portable interface to low level networking routines"
maintainer="Carson Page <pagem.carson@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/dugsong/libdnet"
distfiles="https://github.com/dugsong/libdnet/archive/libdnet-${version}.tar.gz"
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/bin/dnet-config
vmove usr/share/man/man3
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.la"
vmove "usr/lib/*.so"
}
}