39 lines
933 B
Bash
39 lines
933 B
Bash
# Template file for 'libyang'
|
|
pkgname=libyang
|
|
version=0.16r3
|
|
revision=2
|
|
_distver="${version/r/-r}"
|
|
wrksrc="libyang-${_distver}"
|
|
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 <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="${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
|
|
}
|
|
}
|