void-packages/srcpkgs/mumble122/template

51 lines
1.7 KiB
Plaintext

# Template file for 'mumble122'
pkgname=mumble122
version=1.2.2
revision=6
wrksrc="mumble-${version}"
hostmakedepends="pkg-config"
makedepends="protobuf-devel>=2.5.0 libXi-devel qt-devel openssl-devel speex-devel
jack-devel libsndfile-devel libX11-devel alsa-lib-devel pulseaudio-devel
avahi-compat-libs-devel MesaLib-devel libogg-devel boost-devel"
depends="jack qt-plugin-sqlite desktop-file-utils hicolor-icon-theme"
replaces="libmumble<=1.2.3 mumble>=0"
provides="mumble-999"
short_desc="Open source, low-latency, high quality voice chat for gaming"
maintainer="davehome <davehome@redthumb.info.tm>"
license="BSD"
homepage="http://mumble.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/mumble/mumble-${version}.tar.gz"
checksum=2c564e3d5b7481129482f2365375a2dc77e134c0c00012073cfdfbeadaa49be8
disable_parallel_build=yes
do_configure() {
# Needs bundled celt for some reason
qmake -recursive main.pro \
CONFIG+="no-speechd bundled-celt no-bundled-speex no-g15 \
pulseaudio no-embed-qt-translations no-update\
jackaudio no-server" \
DEFINES+="PLUGIN_PATH=/usr/lib/mumble"
}
do_build() {
make ${makejobs} release
}
do_install() {
vmkdir usr/bin
vmkdir usr/lib/mumble
vmkdir usr/share/applications
vmkdir usr/share/man/man1
vmkdir usr/share/icons/hicolor/scalable/apps
cp ${wrksrc}/release/mumble ${DESTDIR}/usr/bin
cp ${wrksrc}/release/mumble11x ${DESTDIR}/usr/bin
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}/man/mumble{,11x}.1 ${DESTDIR}/usr/share/man/man1
cp ${wrksrc}/icons/mumble.svg ${DESTDIR}/usr/share/icons/hicolor/scalable/apps
}