aboutsummaryrefslogtreecommitdiffstats
path: root/community/librdkafka/APKBUILD
blob: 0115cd04e0081f6419d69b18c457407c5a740c3a (plain)
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
# Contributor: Bennett Goble <nivardus@gmail.com>
# Contributor: Mike Milner <milner@blissisland.ca>
# Maintainer: Bennett Goble <nivardus@gmail.com>
pkgname=librdkafka
pkgver=1.0.0
pkgrel=0
pkgdesc="The Apache Kafka C/C++ library"
url="https://github.com/edenhill/librdkafka"
arch="all"
license="BSD"
makedepends="bash python2 openssl-dev cyrus-sasl-dev lz4-dev zlib-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/edenhill/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="15ac1e4c9042debf8d4df602ccdc5eccae3a37b305be24d724fcaffc3d1d0aafa708fc8e29d6af51f51ed6c7daf74b3041b8b9b0444e6702cd73479c8078859a  librdkafka-1.0.0.tar.gz"