# Contributor: Sören Tempel # Contributor: Johannes Matheis # Maintainer: Johannes Matheis pkgname=mumble pkgver=1.3.0 _rc=1 _pkgver=${pkgver}${_rc:+-rc${_rc}} pkgrel=0 pkgdesc="Low-latency, high quality voice chat software" url="https://wiki.mumble.info" arch="all" license="BSD-3-Clause" options="!check" depends="qt5-qtbase-sqlite" makedepends="qt5-qtbase-dev libsndfile-dev boost-dev avahi-dev protobuf-dev libxi-dev speex-dev speexdsp-dev libcap-dev alsa-lib-dev qt5-qtsvg-dev qt5-qttools-dev opus-dev " install="murmur.pre-install" pkgusers="murmur" pkggroups="murmur" subpackages="$pkgname-doc murmur murmur-doc:murmur_doc:noarch" source="https://github.com/mumble-voip/$pkgname/releases/download/$_pkgver/$pkgname-$_pkgver.tar.gz murmur.initd" # secfixes: # 1.2.19-r9: # - CVE-2018-20743 build() { qmake-qt5 -recursive main.pro \ CONFIG+="no-speechd no-g15 no-ice bundled-celt no-embed-qt-translations no-bundled-speex no-bundled-opus no-rnnoise" \ DEFINES+="PLUGIN_PATH=/usr/lib/mumble" make release } package() { # Binaries. install -Dm755 ./release/mumble \ "$pkgdir"/usr/bin/mumble install -Dm755 ./scripts/mumble-overlay \ "$pkgdir"/usr/bin/mumble-overlay # Libraries. install -Dm755 ./release/libmumble.so.$pkgver \ "$pkgdir"/usr/lib/mumble/libmumble.so.$pkgver for lib in libmumble.so libmumble.so.1 libmumble.so.1.2; do ln -s libmumble.so.$pkgver \ "$pkgdir"/usr/lib/mumble/$lib done install -Dm755 ./release/plugins/liblink.so \ "$pkgdir"/usr/lib/mumble/liblink.so install -Dm755 ./release/libcelt* \ "$pkgdir"/usr/lib/mumble/ # Misc. install -Dm644 ./LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE install -Dm644 ./scripts/mumble.desktop \ "$pkgdir"/usr/share/applications/mumble.desktop install -Dm644 ./icons/mumble.svg \ "$pkgdir"/usr/share/icons/hicolor/scalable/apps/mumble.svg # Man pages. mkdir -p "$pkgdir"/usr/share/man/man1/ install -m644 ./man/mum* "$pkgdir"/usr/share/man/man1/ } murmur() { pkgdesc="Murmur is the server component of Mumble" cd "$builddir" install -o murmur -g murmur -dm755 \ "$subpkgdir"/var/lib/murmur install -Dm755 ./release/murmurd \ "$subpkgdir"/usr/bin/murmurd install -Dm644 ./scripts/murmur.ini \ "$subpkgdir"/etc/murmur.ini sed 's/^database=$/database=\/var\/lib\/murmur\/murmur.sqlite/;\ s/^#uname=$/uname=murmur/;\ s/^#logfile=murmur.log$/logfile=\/var\/log\/murmur.log/;\ s/^#pidfile=$/pidfile=\/var\/run\/murmur\/murmur.pid/' \ -i "$subpkgdir"/etc/murmur.ini install -Dm644 ./scripts/murmur.conf \ "$subpkgdir"/etc/dbus-1/system.d/murmurd.conf sed "s/mumble-server/murmur/" \ -i "$subpkgdir"/etc/dbus-1/system.d/murmurd.conf install -Dm755 "$srcdir"/murmur.initd \ "$subpkgdir"/etc/init.d/murmur } murmur_doc() { pkgdesc="Murmur is the server component of Mumble" cd "$builddir" install -Dm644 ./man/murmurd.1 \ "$subpkgdir"/usr/share/man/man1/murmurd.1 install -Dm644 ./LICENSE \ "$subpkgdir"/usr/share/licenses/murmur/LICENSE default_doc } sha512sums="e993b18b0ecf620d3a9a89f145c18b9ecde3aaf9b7217e235b7472908c81a365323c8683dd6fc9ed14b108160f8bf5244369c2a9ee57c22595550220d158516c mumble-1.3.0-rc1.tar.gz c74ade232146a180448cb0027503f59642000bee50613a1fb99162cdc4bc81089ab4e84e51b0bbdac5c176eb52b76e6bd2b3ec790a9148135a1fc050569921c3 murmur.initd"