void-packages/srcpkgs/libyang/template
2020-01-28 15:50:56 +01:00

36 lines
871 B
Bash

# Template file for 'libyang'
pkgname=libyang
version=1.0.109
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=1686a381a8cce775102e60c8eb93f7ba64c6d4ae10591fc05d9f969a07815f60
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
}
}