Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions librdkafka.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
package:
name: librdkafka
version: 2.1.1
epoch: 0
description: "The Apache Kafka C/C++ library"
copyright:
- license: BSD-2-Clause

environment:
contents:
packages:
# - bsd-compat-headers
- linux-headers
- build-base
- busybox
- cmake
- ca-certificates-bundle
- openssl-dev
- samurai
- lz4-dev
- zstd-dev
- zlib-dev

pipeline:
- uses: fetch
with:
expected-sha512: 6bf1761e7ed1820b587fda24277f6606ec046da281064df13c4380f49a92f3e2b165614b9c622d46b27078ec024a4dc211610e500e597265e8219f8869c4d203
uri: https://github.com/edenhill/librdkafka/archive/refs/tags/v${{package.version}}.tar.gz

- runs: |
CFLAGS="$CFLAGS -flto=auto" \
CXXFLAGS="$CXXFLAGS -flto=auto" \
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_BUILD_TYPE=RelWithDebinfo \
-DRDKAFKA_BUILD_EXAMPLES=OFF \
-DRDKAFKA_BUILD_TESTS="$(want_check && echo ON || echo OFF)"
cmake --build build

- runs: |
DESTDIR="${{targets.destdir}}" cmake --install build

- uses: strip

subpackages:
- name: librdkafka-dev
pipeline:
- uses: split/dev
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib
mv "${{targets.destdir}}"/usr/lib/*.so* "${{targets.subpkgdir}}"/usr/lib/
dependencies:
runtime:
- librdkafka
description: librdkafka dev

update:
enabled: true
ignore-regex-patterns:
- full-integration-tests
github:
identifier: edenhill/librdkafka
strip-prefix: v
use-tag: true
1 change: 1 addition & 0 deletions packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ cilium-cli
wireguard-tools
wireguard-go
acme.sh
librdkafka
caddy
cloudflared
libdbi
Expand Down