# Contributor: Bennett Goble # Contributor: Mike Milner # Maintainer: John Anthony pkgname=librdkafka pkgver=2.2.0 pkgrel=1 pkgdesc="The Apache Kafka C/C++ library" url="https://github.com/edenhill/librdkafka" arch="all" license="BSD-2-Clause" makedepends=" bsd-compat-headers cmake cyrus-sasl-dev lz4-dev openssl-dev>3 rapidjson-dev samurai zlib-dev zstd-dev " subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/edenhill/librdkafka/archive/v$pkgver.tar.gz" options="!check" # a bunch of them fail build() { CFLAGS="$CFLAGS -flto=auto" \ CXXFLAGS="$CXXFLAGS -flto=auto" \ cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=RelWithDebinfo \ -DRDKAFKA_BUILD_EXAMPLES=OFF \ -DRDKAFKA_BUILD_TESTS="$(want_check && echo ON || echo OFF)" cmake --build build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 1a85b5864efdeece1327e461b62a378f24b73eb7174168f630aeff01d4a5074d6b2f15744bc267665fcfc6384e804df00c20b7271ecd85a98dca84746b86b4d9 librdkafka-2.2.0.tar.gz "