[arch-commits] Commit in json-c/trunk (PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Fri Nov 12 22:01:06 UTC 2021
Date: Friday, November 12, 2021 @ 22:01:05
Author: heftig
Revision: 427981
0.15-2: FS#72720 fix cmake
Modified:
json-c/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-12 22:01:04 UTC (rev 427980)
+++ PKGBUILD 2021-11-12 22:01:05 UTC (rev 427981)
@@ -4,13 +4,13 @@
pkgname=json-c
pkgver=0.15
-pkgrel=1
+pkgrel=2
pkgdesc="A JSON implementation in C"
url="https://github.com/json-c/json-c/wiki"
license=(MIT)
arch=(x86_64)
depends=(glibc)
-makedepends=(git cmake)
+makedepends=(git cmake ninja)
provides=(libjson-c.so)
_commit=9021cdcdd01fc9dbcbe1f06391848c2ac915212f # tags/json-c-0.15-20200726^0
source=("git+https://github.com/json-c/json-c#commit=$_commit")
@@ -28,13 +28,11 @@
}
build() {
- CFLAGS+=" $CPPFLAGS"
- CXXFLAGS+=" $CPPFLAGS"
-
- cmake -Hjson-c -Bbuild \
+ cmake -S json-c -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_STATIC_LIBS=OFF \
-DENABLE_THREADING=ON \
-DENABLE_RDRAND=OFF
cmake --build build
@@ -45,7 +43,7 @@
}
package() {
- DESTDIR="$pkgdir" cmake --build build --target install
+ DESTDIR="$pkgdir" cmake --install build
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 json-c/COPYING
}
More information about the arch-commits
mailing list