+github.com/cesnet/libyang (#5483)

* +github.com/cesnet/libyang

* remove redundant deps; simplify scripts

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
tannevaled 2024-03-08 16:22:58 +01:00 committed by GitHub
parent a0b5a2987a
commit 4929b10b31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,36 @@
distributable:
url: https://github.com/CESNET/libyang/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1
display-name: libyang
versions:
github: CESNET/libyang
strip: /^v/
dependencies:
pcre.org/v2: '*'
build:
dependencies:
graphviz.org: '*'
freedesktop.org/pkg-config: '*'
doxygen.nl: '*'
gnu.org/gcc: '*'
cmake.org: ^3
working-directory: build
script:
- cmake ${ARGS} ..
- make
- make install
env:
CC: gcc
ARGS:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{prefix}}
provides:
- bin/yanglint
- bin/yangre
test: test "$(yangre --version|cut -d' ' -f2)" = {{version}}