void-packages/srcpkgs/mumble/template
2021-02-22 10:21:46 +01:00

65 lines
2.3 KiB
Bash

# Template file for 'mumble'
pkgname=mumble
version=1.3.4
revision=3
build_style=qmake
configure_args="CONFIG+=bundled-celt CONFIG+=no-bundled-opus CONFIG+=no-update
CONFIG+=no-bundled-speex CONFIG+=no-g15 CONFIG+=no-xevie CONFIG+=pulseaudio
$(vopt_if jack CONFIG+=jackaudio) CONFIG+=no-embed-qt-translations
CONFIG+=no-oss CONFIG+=portaudio DEFINES+=PLUGIN_PATH=/usr/lib/mumble"
hostmakedepends="Ice pkg-config protobuf qt5-host-tools qt5-qmake python3 which"
makedepends="Ice-devel MesaLib-devel avahi-compat-libs-devel boost-devel
libcap-devel libressl-devel libsndfile-devel opus-devel protobuf-devel
pulseaudio-devel $(vopt_if jack jack-devel) qt5-devel qt5-svg-devel
speech-dispatcher-devel speex-devel portaudio-devel"
depends="desktop-file-utils qt5-plugin-sqlite"
short_desc="Open source, low-latency, high quality voice chat for gaming"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="BSD-3-Clause"
homepage="http://mumble.sourceforge.net/"
distfiles="https://github.com/mumble-voip/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
checksum=615f4ebfc3385d945163f369efd3e910c8b6d0f025797a7eed541515fccb6093
build_options="jack"
desc_option_jack="Enable support for the JACK sound server"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-svg-devel"
fi
do_install() {
vlicense LICENSE
vmkdir usr/lib/mumble
vmkdir usr/share/applications
vmkdir usr/share/icons/hicolor/scalable/apps
vbin ${wrksrc}/release/murmurd
vbin ${wrksrc}/scripts/murmur-user-wrapper
vbin ${wrksrc}/scripts/mumble-overlay
vman ${wrksrc}/man/murmurd.1
vman ${wrksrc}/man/murmur-user-wrapper.1
vbin ${wrksrc}/release/mumble
vman ${wrksrc}/man/mumble.1
cp ${wrksrc}/release/*.so* ${DESTDIR}/usr/lib/mumble
cp ${wrksrc}/release/plugins/* ${DESTDIR}/usr/lib/mumble
cp ${wrksrc}/scripts/mumble.desktop ${DESTDIR}/usr/share/applications
cp ${wrksrc}/icons/mumble.svg ${DESTDIR}/usr/share/icons/hicolor/scalable/apps
vsconf scripts/murmur.ini
vsconf scripts/murmur.ini.system
}
murmur_package() {
depends="mumble-${version}_${revision}"
short_desc+=" - The murmur server (for mumble)"
pkg_install() {
vmove usr/bin/murmurd
vmove usr/bin/murmur-user-wrapper
vmove usr/share/man/man1/murmur-user-wrapper.1
vmove usr/share/man/man1/murmurd.1
vmove usr/share/examples/mumble/murmur.ini
vmove usr/share/examples/mumble/murmur.ini.system
}
}