[arch-commits] Commit in librdkafka/repos/community-x86_64 (PKGBUILD PKGBUILD)

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


    Date: Thursday, May 7, 2020 @ 19:07:52
  Author: anatolik
Revision: 625485

archrelease: copy trunk to community-x86_64

Added:
  librdkafka/repos/community-x86_64/PKGBUILD
    (from rev 625484, librdkafka/trunk/PKGBUILD)
Deleted:
  librdkafka/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++----------------------------
 1 file changed, 31 insertions(+), 28 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-07 19:07:33 UTC (rev 625484)
+++ PKGBUILD	2020-05-07 19:07:52 UTC (rev 625485)
@@ -1,28 +0,0 @@
-# Maintainer: Anatol Pomozov
-# Contributor: Andrew Sun <adsun701 at gmail dot com>
-# Contributor: Joel Teichroeb <joel at teichroeb dot net>
-# Contributor: Alim Gokkaya <alimgokkaya at gmail dot com>
-
-pkgname=librdkafka
-pkgver=1.4.2
-pkgrel=1
-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)
-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
-}
-
-package() {
-  cd librdkafka-$pkgver
-  make install DESTDIR="$pkgdir"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: librdkafka/repos/community-x86_64/PKGBUILD (from rev 625484, librdkafka/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-07 19:07:52 UTC (rev 625485)
@@ -0,0 +1,31 @@
+# Maintainer: Anatol Pomozov
+# Contributor: Andrew Sun <adsun701 at gmail dot com>
+# Contributor: Joel Teichroeb <joel at teichroeb dot net>
+# Contributor: Alim Gokkaya <alimgokkaya at gmail dot com>
+
+pkgname=librdkafka
+pkgver=1.4.2
+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 cmake)
+source=(librdkafka-$pkgver.tar.gz::https://github.com/edenhill/librdkafka/archive/v$pkgver.tar.gz)
+sha256sums=('3b99a36c082a67ef6295eabd4fb3e32ab0bff7c6b0d397d6352697335f4e57eb')
+
+build() {
+  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() {
+  cmake --build build --target install -- DESTDIR="$pkgdir"
+}



More information about the arch-commits mailing list