void-packages/srcpkgs/libyang/template
2020-06-01 11:19:44 +02:00

36 lines
871 B
Bash

# Template file for 'libyang'
pkgname=libyang
version=1.0.167
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=2431fa5c7cfbe6a6f2c0873547b976f018438967adfe268726911dd3d95eaa31
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
}
}