39 lines
999 B
Bash
39 lines
999 B
Bash
# Template file for 'apache-kafka'
|
|
pkgname=apache-kafka
|
|
version=3.0.0
|
|
revision=1
|
|
wrksrc="kafka-${version}-src"
|
|
hostmakedepends="curl which tar openjdk8"
|
|
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="https://dlcdn.apache.org/kafka/${version}/kafka-${version}-src.tgz"
|
|
checksum=66a9efddcc2ce88984941020db012178efd51eb47c359c7fd1bab791416e39cd
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) ;;
|
|
ppc*) broken="no JVM JIT, making this too slow to be practical";;
|
|
esac
|
|
|
|
do_configure() {
|
|
./gradlew
|
|
}
|
|
|
|
do_build() {
|
|
./gradlew releaseTarGz
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/lib/kafka
|
|
tar -xf core/build/distributions/kafka_2.13-${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
|
|
}
|