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

Jan Steffens heftig at archlinux.org
Mon Apr 20 18:52:04 UTC 2020


    Date: Monday, April 20, 2020 @ 18:52:04
  Author: heftig
Revision: 380641

0.14-1

Modified:
  json-c/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-20 18:48:18 UTC (rev 380640)
+++ PKGBUILD	2020-04-20 18:52:04 UTC (rev 380641)
@@ -3,15 +3,16 @@
 # Contributor: congyiwu <congyiwu AT gmail DOT com>
 
 pkgname=json-c
-pkgver=0.13.1
-pkgrel=3
+pkgver=0.14
+pkgrel=1
 pkgdesc="A JSON implementation in C"
 url="https://github.com/json-c/json-c/wiki"
 license=(MIT)
 arch=(x86_64)
 depends=(glibc)
-makedepends=(git)
-_commit=985c46fec39d1d3043f98e8d8cdb9d040131b3bb  # tags/json-c-0.13.1-20180305^0
+makedepends=(git cmake)
+provides=(libjson-c.so)
+_commit=bae2f10c436eaf0d95746cbc5f1c1f0ecb866a8e  # tags/json-c-0.14-20200419^0
 source=("git+https://github.com/json-c/json-c#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -24,27 +25,25 @@
 
 prepare() {
   cd json-c
-  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd json-c
-  ./configure \
-    --prefix=/usr \
-    --disable-static \
-    --enable-threading
-  make
+  cmake -Hjson-c -Bbuild \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+    -DENABLE_THREADING=ON \
+    -DENABLE_RDRAND=ON
+  cmake --build build
 }
 
 check() {
-  cd json-c
-  make check
+  cmake --build build --target test
 }
 
 package() {
-  cd json-c
-  make DESTDIR="$pkgdir" install
-  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
+  DESTDIR="$pkgdir" cmake --build build --target install
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 json-c/COPYING
 }
 
 # vim:set sw=2 et:



More information about the arch-commits mailing list