blob: 7c41a03a379bbef917b26be69cdea77c1cc40c65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# Maintainer: Thomas Lange <thomas-lange2@gmx.de>
# Contributor: David Runge <dvzrv@archlinux.org>
# Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Lauri Niskanen <ape@ape3000.com>
# Contributor: Sebastian.Salich@gmx.de
# Contributor: Doc Angelo
_pkgname=mumble
pkgname="$_pkgname-git"
pkgver=1.4.0.development.snapshot.006.r1447.g71010603d
pkgrel=1
epoch=1
pkgdesc='An Open Source, low-latency, high quality voice chat software (git version)'
arch=('x86_64')
url='https://www.mumble.info'
license=('BSD')
depends=('gcc-libs' 'glibc' 'qt6-base')
makedepends=('alsa-lib' 'avahi' 'boost' 'cmake' 'git' 'hicolor-icon-theme'
'jack' 'lib32-gcc-libs' 'libpulse' 'libsndfile' 'libspeechd'
'libx11' 'libxi' 'mesa' 'microsoft-gsl' 'nlohmann-json' 'openssl'
'opus' 'poco' 'protobuf' 'python' 'qt6-svg' 'qt6-tools' 'rnnoise'
'speech-dispatcher' 'speexdsp' 'xdg-utils')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=('git+https://github.com/mumble-voip/mumble.git'
'git+https://github.com/mumble-voip/minhook.git'
'git+https://github.com/mumble-voip/mach_override.git'
'git+https://github.com/mumble-voip/rnnoise.git'
'git+https://github.com/mumble-voip/SPSCQueue.git'
'git+https://github.com/Krzmbrzl/cmake-compiler-flags.git'
'git+https://github.com/Krzmbrzl/FindPythonInterpreter.git'
'git+https://github.com/wolfpld/tracy.git'
'git+https://github.com/nlohmann/json.git'
'git+https://github.com/microsoft/GSL.git'
'git+https://github.com/xiph/speexdsp.git')
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$_pkgname"
git submodule init
git config submodule.3rdparty/minhook.url "$srcdir/minhook"
git config submodule.3rdparty/mach-override-src.url "$srcdir/mach_override"
git config submodule.3rdparty/rnnoise-src.url "$srcdir/rnnoise"
git config submodule.3rdparty/SPSCQueue.url "$srcdir/SPSCQueue"
git config submodule.3rdparty/cmake-compiler-flags-src.url "$srcdir/cmake-compiler-flags"
git config submodule.3rdparty/FindPythonInterpreter.url "$srcdir/FindPythonInterpreter"
git config submodule.3rdparty/tracy.url "$srcdir/tracy"
git config submodule.3rdparty/nlohmann_json.url "$srcdir/json"
git config submodule.3rdparty/gsl.url "$srcdir/GSL"
git config submodule.3rdparty/speexdsp.url "$srcdir/speexdsp"
git -c protocol.file.allow=always submodule update
}
build() {
cmake \
-B build-client \
-S "$_pkgname" \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Dwarnings-as-errors='OFF' \
-Dclient='ON' \
-Dserver='OFF' \
-Dbundled-gsl='OFF' \
-Dbundled-json='OFF' \
-Dbundled-rnnoise='OFF' \
-Dbundled-speex='OFF' \
-Dupdate='OFF' \
-Wno-dev
cmake --build build-client
}
package() {
# NOTE: jack, libpulse, and pipewire are dlopen'ed
depends+=(
'alsa-lib' 'libasound.so'
'avahi' 'libdns_sd.so'
'hicolor-icon-theme'
'jack'
'protobuf' 'libprotobuf.so'
'libpulse'
'libsndfile' 'libsndfile.so'
'libspeechd'
'libx11'
'libxi'
'openssl' 'libcrypto.so' 'libssl.so'
'opus' 'libopus.so'
'poco'
'qt6-svg'
'rnnoise'
'speexdsp' 'libspeexdsp.so'
'xdg-utils'
)
optdepends=(
'lib32-glibc: For mumble-overlay'
'espeak-ng: Text-to-speech support'
'speech-dispatcher: Text-to-speech support'
'pipewire: PipeWire audio support'
)
DESTDIR="$pkgdir" cmake --install build-client
install -Dm 644 "$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$_pkgname/"
}
|