2019-03-04 05:38:12 +01:00
|
|
|
# Template file for 'libyang'
|
|
|
|
pkgname=libyang
|
|
|
|
version=0.16r3
|
2019-03-24 17:27:39 +01:00
|
|
|
revision=2
|
2019-03-04 05:38:12 +01:00
|
|
|
_distver="${version/r/-r}"
|
|
|
|
wrksrc="libyang-${_distver}"
|
|
|
|
build_style=cmake
|
2019-03-24 17:27:39 +01:00
|
|
|
configure_args="-DENABLE_LYD_PRIV=ON"
|
|
|
|
hostmakedepends="doxygen pkg-config"
|
2019-03-04 05:38:12 +01:00
|
|
|
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"
|
2019-03-24 17:27:39 +01:00
|
|
|
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
|
2019-03-04 05:38:12 +01:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/libyang.so
|
2019-03-24 17:27:39 +01:00
|
|
|
vmove usr/lib/pkgconfig
|
2019-03-04 05:38:12 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libyang-tools_package() {
|
|
|
|
short_desc+=" - utilities"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|