blob: 51b46a49e58a90cab0b9200304c9b2b3f1524946 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Konstantin Shalygin <k0ste@k0ste.ru>
# Contributor: Konstantin Shalygin <k0ste@k0ste.ru>
pkgname='libyang'
pkgver='3.4.2'
pkgrel='1'
pkgdesc='A YANG data modelling language parser and toolkit written (and providing API) in C'
url="https://github.com/CESNET/${pkgname}"
arch=('x86_64' 'aarch64' 'armv7h')
license=('BSD')
depends=('pcre2')
makedepends=('cmake' 'doxygen' 'graphviz')
checkdepends=('cmocka')
conflicts=('libyang-git' 'libyang-devel-git')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('2767902aeffc55c55767f4ecfe5371c422174794edd8aa2b02028d5fe3f8b82c')
prepare() {
cd "${pkgname}-${pkgver}"
mkdir build
}
build() {
cd "${pkgname}-${pkgver}/build"
cmake .. \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_BUILD_TYPE="Release" \
-DENABLE_TESTS="ON"
make
}
check() {
cd "${pkgname}-${pkgver}/build"
ctest
}
package() {
cd "${pkgname}-${pkgver}/build"
make DESTDIR="${pkgdir}" install
install -Dm644 "../LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|