void-packages/srcpkgs/mumble/template
2014-04-29 18:58:06 +02:00

61 lines
1.9 KiB
Text

# Template file for 'mumble'
pkgname=mumble
version=1.2.5
revision=1
hostmakedepends="pkg-config"
makedepends="
libcap-devel Ice-devel>=3.5 protobuf-devel>=2.5.0 libXi-devel qt-devel openssl-devel
speex-devel libsndfile-devel libX11-devel alsa-lib-devel pulseaudio-devel
avahi-compat-libs-devel MesaLib-devel libstdc++-devel libogg-devel boost-devel"
depends="qt-plugin-sqlite desktop-file-utils hicolor-icon-theme"
replaces="libmumble<=1.2.3"
short_desc="Open source, low-latency, high quality voice chat for gaming"
maintainer="davehome <davehome@redthumb.info.tm>"
homepage="http://mumble.sourceforge.net/"
license="BSD"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=915156946f7662c2488e4c40c95cb95c4ff00532789515da7df775a36d544faf
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" \
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/*.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.1 ${DESTDIR}/usr/share/man/man1
cp ${wrksrc}/icons/mumble.svg ${DESTDIR}/usr/share/icons/hicolor/scalable/apps
vmkdir usr/bin
vmkdir usr/share/man/man1
cp ${wrksrc}/release/murmurd ${DESTDIR}/usr/bin
cp ${wrksrc}/man/murmur{d,-user-wrapper}.1 ${DESTDIR}/usr/share/man/man1
}
murmur_package() {
depends="mumble>=${version}"
short_desc+=" - The murmur server (for mumble)"
pkg_install() {
vmove usr/bin/murmurd
vmove "usr/share/man/man1/murmurd*"
}
}