35 lines
971 B
Bash
35 lines
971 B
Bash
# Template file for 'apache-kafka'
|
|
pkgname=apache-kafka
|
|
version=2.3.0
|
|
revision=1
|
|
wrksrc="kafka-${version}-src"
|
|
hostmakedepends="gradle"
|
|
depends="virtual?java-runtime"
|
|
short_desc="Distributed Streaming Platform"
|
|
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://kafka.apache.org"
|
|
distfiles="http://apache.mirrors.ionfish.org/kafka/${version}/kafka-${version}-src.tgz"
|
|
checksum=d32cbd619e1a7fb4deae2402fa1dce56d909af19ad690c82e2d495fb5c4cfdc0
|
|
broken="https://build.voidlinux.org/builders/x86_64_builder/builds/23103/steps/shell_3/logs/stdio"
|
|
|
|
do_configure() {
|
|
gradle
|
|
}
|
|
|
|
do_build() {
|
|
./gradlew releaseTarGz
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/lib/kafka
|
|
tar -xf core/build/distributions/kafka_2.12-${version}.tgz -C ${DESTDIR}/usr/lib/kafka --strip 1
|
|
rm -Rf ${DESTDIR}/usr/lib/kafka/bin/windows
|
|
|
|
mkdir -p ${DESTDIR}/etc/profile.d
|
|
vinstall ${FILESDIR}/apache-kafka.sh 0755 etc/profile.d/
|
|
|
|
vsv apache-kafka-zookeeper
|
|
vsv apache-kafka
|
|
}
|