void-packages/srcpkgs/libyang/template

37 lines
843 B
Bash
Raw Normal View History

2019-03-04 04:38:12 +00:00
# Template file for 'libyang'
pkgname=libyang
version=0.16r3
revision=1
_distver="${version/r/-r}"
wrksrc="libyang-${_distver}"
build_style=cmake
hostmakedepends="doxygen"
makedepends="pcre-devel"
short_desc="YANG data modeling language library"
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/CESNET/libyang"
distfiles="https://github.com/CESNET/libyang/archive/v${_distver}.tar.gz"
checksum=4745460dedc4ba17d8bcfc39ad9ba0d1b91bbe82b55b9417a090390909ba8ca5
post_install() {
vlicense LICENSE
}
libyang-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/libyang.so
}
}
libyang-tools_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
vmove usr/share
}
}