[arch-commits] Commit in libcbor/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Thu Sep 24 21:51:11 UTC 2020


    Date: Thursday, September 24, 2020 @ 21:51:10
  Author: anthraxx
Revision: 396510

upgpkg: libcbor 0.8.0-1

Modified:
  libcbor/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-24 21:50:43 UTC (rev 396509)
+++ PKGBUILD	2020-09-24 21:51:10 UTC (rev 396510)
@@ -2,7 +2,7 @@
 # Contributor: Moritz Kiefer <moritz.kiefer at purelyfunctional.org>
 
 pkgname=libcbor
-pkgver=0.7.0
+pkgver=0.8.0
 pkgrel=1
 pkgdesc='C library for parsing and generating CBOR, the general-purpose schema-less binary data format'
 url='https://github.com/PJK/libcbor'
@@ -12,25 +12,26 @@
 makedepends=('cmake' 'cmocka')
 provides=('libcbor.so')
 source=(https://github.com/PJK/libcbor/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('4e2ed55ef17b8b77f82d780b1ee998d0342b67e6beabc24795117e5e222549640fe7fd261c8e78524d6489d03f7f5aa46b987709790a81f93e4d7409c32fecda')
-b2sums=('76f93d3199e703c4167aeed262da7ba78d1df82e081754609391572b89f216efba0c54511d4021049fc6c62ab01b08835f02a58bbf226d973174b37eff087761')
+sha512sums=('694d2d3a78d80072f96e0afb73590ca1f3572e41d2117330ef4313ed06271743b048d3ba3259c6ffe9a802d5e441379d0e54787d1d42fed08dc81ac4f06c6dbc')
+b2sums=('e8548e7351984ebdcbeb5f13a7ca35412c3f3f05e2a44a5438d57b90bdcdc51f5265953163106f90ade911a96af665956ebeba7ed1c48cf207acf6d683af5606')
 
 build() {
-  mkdir -p ${pkgname}-${pkgver}/build
-  cd ${pkgname}-${pkgver}/build
-  cmake .. \
+  cd ${pkgname}-${pkgver}
+  cmake . \
+    -Bbuild \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_LIBDIR=lib \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_C_FLAGS="${CFLAGS} ${CPPFLAGS}" \
+    -DBUILD_SHARED_LIBS=ON \
     -DWITH_TESTS=1
-  make cbor cbor_shared VERBOSE=1
-  make -C test VERBOSE=1
+  make -C build VERBOSE=1
+  make -C build/test VERBOSE=1
 }
 
 check() {
-  cd ${pkgname}-${pkgver}/build
-  make -C test test
+  cd ${pkgname}-${pkgver}
+  make -C build/test test
 }
 
 package() {


More information about the arch-commits mailing list