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

Anatol Pomozov anatolik at archlinux.org
Thu May 7 19:07:33 UTC 2020


    Date: Thursday, May 7, 2020 @ 19:07:33
  Author: anatolik
Revision: 625484

upgpkg: librdkafka 1.4.2-2

 - Switch to cmake build tool
 - Fix 'empty librdkafka++.so file' issue

Modified:
  librdkafka/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-07 18:52:05 UTC (rev 625483)
+++ PKGBUILD	2020-05-07 19:07:33 UTC (rev 625484)
@@ -5,24 +5,27 @@
 
 pkgname=librdkafka
 pkgver=1.4.2
-pkgrel=1
+pkgrel=2
 pkgdesc='The Apache Kafka C/C++ library'
 arch=(x86_64)
 url='https://github.com/edenhill/librdkafka'
 license=(BSD)
 depends=(libsasl zstd)
-makedepends=(python openssl lz4 rapidjson)
+makedepends=(python openssl lz4 rapidjson cmake)
 source=(librdkafka-$pkgver.tar.gz::https://github.com/edenhill/librdkafka/archive/v$pkgver.tar.gz)
 sha256sums=('3b99a36c082a67ef6295eabd4fb3e32ab0bff7c6b0d397d6352697335f4e57eb')
 
 build() {
-  cd librdkafka-$pkgver
-  ./configure --prefix=/usr
-  make
+  cmake -S librdkafka-$pkgver -B build
+  cmake -DCMAKE_INSTALL_PREFIX=/usr --build build
 }
 
+check() {
+  # TODO: figure out why the tests timeout
+  # cmake --build build --target test
+  true
+}
+
 package() {
-  cd librdkafka-$pkgver
-  make install DESTDIR="$pkgdir"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  cmake --build build --target install -- DESTDIR="$pkgdir"
 }


More information about the arch-commits mailing list