diff options
author | Christian Franke <nobody@nowhere.ws> | 2019-04-05 15:18:18 +0200 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2019-04-05 20:16:14 +0300 |
commit | 566f96b90a04651561db2599b3b155c1513e21cb (patch) | |
tree | 169b305f7316e1331c489d8fda7afe335e726baf | |
parent | c3e6e7b0d954b2e86342768a7665d980036a83aa (diff) | |
download | aports-566f96b90a04651561db2599b3b155c1513e21cb.tar.bz2 aports-566f96b90a04651561db2599b3b155c1513e21cb.tar.xz |
testing/libyang: adopt, update to 1.0-r2
From version 1.0-r1 forward, the package needs to be built outside of
the main source directory, so adjust builddir.
-rw-r--r-- | testing/libyang/APKBUILD | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/testing/libyang/APKBUILD b/testing/libyang/APKBUILD index ebdade1ce3..8c41b9117f 100644 --- a/testing/libyang/APKBUILD +++ b/testing/libyang/APKBUILD @@ -1,8 +1,7 @@ # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> -# Contributor: Christian Franke <nobody@nowhere.ws> -# Maintainer: +# Maintainer: Christian Franke <nobody@nowhere.ws> pkgname=libyang -pkgver=0.16_p3 +pkgver=1.0_p2 _realver=${pkgver/_p/-r} pkgrel=0 pkgdesc="YANG data modelling language parser and toolkit" @@ -14,9 +13,10 @@ makedepends="bison cmake cmocka-dev flex pcre-dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="${pkgname}-${pkgver}.tar.gz::https://github.com/CESNET/$pkgname/archive/v$_realver.tar.gz" -builddir="$srcdir/$pkgname-$_realver" +builddir="$srcdir/$pkgname-$_realver/build" build() { + mkdir -p "$builddir" cd "$builddir" if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" @@ -29,7 +29,8 @@ build() { -DCMAKE_C_FLAGS="$CFLAGS" \ -DENABLE_BUILD_TESTS=ON \ -DENABLE_LYD_PRIV=ON \ - ${CMAKE_CROSSOPTS} + ${CMAKE_CROSSOPTS} \ + .. make } @@ -43,4 +44,4 @@ package() { make DESTDIR="$pkgdir" install } -sha512sums="d4d936e6429379207b763850aab372310e3683d3c26d4158273584efe5835a93d2c58971ae1d1e8b7b2f8688cadfcd863b007ba877776f452bbf55f8ddd420a2 libyang-0.16_p3.tar.gz" +sha512sums="1ed184b43b2163fe15bb13e683083a142f8624430b00a6f491d58a52ce4bde5603c1a0b5aac6cd314de1b5c9c608bee0ad7a1409c7be14836debe4c348b7a915 libyang-1.0_p2.tar.gz" |