38 lines
999 B
Bash
38 lines
999 B
Bash
# Template file for 'apache-kafka'
|
|
pkgname=apache-kafka
|
|
version=3.1.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=75265c6b103b73fa9c8a9897963bee6587f968309ec827ad795e48dea1a61aaf
|
|
|
|
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
|
|
}
|