void-packages/srcpkgs/libyang/template

37 lines
871 B
Bash

# Template file for 'libyang'
pkgname=libyang
version=1.0.215
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=c4498a77a7c12a28c9911f993eeafbf2badd2ecea58bb74781bd61cfc635e4c9
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
}
}