-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathlibrdkafka.yaml
60 lines (53 loc) · 1.38 KB
/
librdkafka.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package:
name: librdkafka
version: 2.3.0
epoch: 1
description: "The Apache Kafka C/C++ library"
copyright:
- license: BSD-2-Clause
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- cmake
# - bsd-compat-headers
- linux-headers
- lz4-dev
- openssl-dev
- rapidjson
- samurai
- zlib-dev
- zstd-dev
pipeline:
- uses: fetch
with:
expected-sha512: a68b7382ec5a9afc0eb8513e97d8563c599021d774f7790a61af80565600678a497e4957dcdd823f8b9a426a19b9c5392cacd42d02d70493d993319f3343fe96
uri: https://github.com/confluentinc/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="OFF"
cmake --build build
- runs: |
DESTDIR="${{targets.destdir}}" cmake --install build
- uses: strip
subpackages:
- name: librdkafka-dev
pipeline:
- uses: split/dev
description: librdkafka dev
update:
enabled: false
ignore-regex-patterns:
- full-integration-tests
github:
identifier: confluentinc/librdkafka
strip-prefix: v
use-tag: true