Date: Wednesday, December 9, 2020 @ 16:55:05 Author: anatolik Revision: 772871
archrelease: copy trunk to community-testing-x86_64 Added: librdkafka/repos/community-testing-x86_64/ librdkafka/repos/community-testing-x86_64/PKGBUILD (from rev 772870, librdkafka/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: librdkafka/repos/community-testing-x86_64/PKGBUILD (from rev 772870, librdkafka/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-12-09 16:55:05 UTC (rev 772871) @@ -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.5.3 +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 cmake) +source=(librdkafka-$pkgver.tar.gz::https://github.com/edenhill/librdkafka/archive/v$pkgver.tar.gz) +sha256sums=('2105ca01fef5beca10c9f010bc50342b15d5ce6b73b2489b012e6d09a008b7bf') + +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" +}