Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: librdkafka 2.1.0-1: Upgrade to 2.1.0.
Browse files Browse the repository at this point in the history
Switch back to upstream supported build system, as cmake is unsupported and experimental and is causing serious issues for other applications (due to broken pkgconfig integration).
Add all direct dependencies.
Add license files.

git-svn-id: file:///srv/repos/svn-community/svn@1442291 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
dvzrv authored and svntogit committed Apr 8, 2023
1 parent 0cefdbe commit 924fdde
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,37 @@
# Contributor: Alim Gokkaya <alimgokkaya at gmail dot com>

pkgname=librdkafka
pkgver=2.0.2
pkgver=2.1.0
pkgrel=1
pkgdesc='The Apache Kafka C/C++ library'
arch=(x86_64)
url='https://github.com/edenhill/librdkafka'
license=(BSD)
depends=(libsasl zstd curl)
makedepends=(python openssl lz4 rapidjson cmake)
depends=(
curl
gcc-libs
glibc
libsasl
lz4
openssl
zlib
zstd
)
makedepends=(python rapidjson)
source=(librdkafka-$pkgver.tar.gz::https://github.com/edenhill/librdkafka/archive/v$pkgver.tar.gz)
sha256sums=('f321bcb1e015a34114c83cf1aa7b99ee260236aab096b85c003170c90a47ca9d')
sha256sums=('d8e76c4b1cde99e283a19868feaaff5778aa5c6f35790036c5ef44bc5b5187aa')

build() {
cmake -S librdkafka-$pkgver -B build -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
cd $pkgname-$pkgver
./configure --prefix=/usr
make
}

check() {
# TODO: figure out why the tests timeout
# cmake --build build --target test
true
make -k check -C $pkgname-$pkgver
}

package() {
cmake --build build --target install -- DESTDIR="$pkgdir"
make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
install -vDm 644 $pkgname-$pkgver/LICENSE* -t "$pkgdir/usr/share/licenses/$pkgname/"
}

0 comments on commit 924fdde

Please sign in to comment.