39 lines
1008 B
Bash
39 lines
1008 B
Bash
# Template file for 'apache-kafka'
|
|
pkgname=apache-kafka
|
|
version=2.4.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="http://apache.mirrors.ionfish.org/kafka/${version}/kafka-${version}-src.tgz"
|
|
checksum=d09efde300c1027e0289de1a1d2da093ecce6b182250e03f05215fb044f24f8b
|
|
|
|
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.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
|
|
}
|