void-packages/srcpkgs/libyang/template

37 lines
871 B
Bash

# Template file for 'libyang'
pkgname=libyang
version=1.0.184
revision=1
build_style=cmake
configure_args="-DENABLE_LYD_PRIV=ON"
hostmakedepends="doxygen pkg-config"
makedepends="pcre-devel"
short_desc="YANG data modeling language library"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="BSD-3-Clause"
homepage="https://github.com/CESNET/libyang"
distfiles="https://github.com/CESNET/libyang/archive/v${version}.tar.gz"
checksum=1a5637451b73c4c5683837eb4c51371bb084795f653bc1a5fc20fed5541b58bc
post_install() {
vlicense LICENSE
}
libyang-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/libyang.so
vmove usr/lib/pkgconfig
}
}
libyang-tools_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
vmove usr/share
}
}