blob: 2a6523d24edf42ee70d0324085e26c176a3f29f1 (
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
|
# Maintainer: Radioactiveman <thomas-lange2@gmx.de>
# Contributor: Sven-Hendrik Haase <svenstaro@gmail.com>
# Contributor: David Runge <dvzrv@archlinux.org>
# Contributor: Lauri Niskanen <ape@ape3000.com>
# Contributor: Sebastian.Salich@gmx.de
# Contributor: Doc Angelo
_pkgname=mumble
pkgname="$_pkgname-git"
pkgver=1.3.0.rc2.r838.gf01920308
pkgrel=1
epoch=1
pkgdesc='Open source, low-latency, high quality voice chat (git version)'
arch=('i686' 'x86_64')
url='https://www.mumble.info'
license=('BSD')
depends=('gcc-libs' 'glibc' 'hicolor-icon-theme' 'libspeechd' 'libx11' 'libxi'
'lsb-release' 'openssl' 'opus' 'qt5-base' 'qt5-svg' 'speex' 'xdg-utils')
makedepends=('alsa-lib' 'avahi' 'boost' 'jack' 'libpulse' 'libsndfile' 'mesa'
'protobuf' 'python' 'qt5-tools' 'speech-dispatcher' 'cmake' 'git')
optdepends=('speech-dispatcher: Text-to-Speech support'
'espeak-ng: Text-to-Speech support')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=('git://github.com/mumble-voip/mumble.git'
'git://github.com/mumble-voip/mumble-theme.git'
'git://github.com/mumble-voip/celt-0.7.0.git'
'git://github.com/mumble-voip/opus.git'
'git://github.com/mumble-voip/speex.git'
'build-type-release.patch'
'no-bundled-opus.patch')
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP'
'086374239b072df0034eed92d74917ab9af8db96fb0fcb01c36c111d6a134fe4'
'bd2d9fea616a88fe4425bdf3396a0d9e0dfb735a7c06bcacd0858250ea96a2b0')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$_pkgname"
git submodule init
git config submodule.3rdparty/celt-0.7.0-src.url "$srcdir/celt"
git config submodule.3rdparty/opus.url "$srcdir/opus"
git config submodule.3rdparty/speex.url "$srcdir/speex"
git config submodule.themes/Mumble.url "$srcdir/mumble-theme"
git submodule update
# Workarounds to fix cmake build
patch -Np1 -i "$srcdir/build-type-release.patch"
patch -Np1 -i "$srcdir/no-bundled-opus.patch"
}
build() {
CXXFLAGS+=" -DPLUGIN_PATH=/usr/lib/$_pkgname"
cmake \
-B "$_pkgname/build" \
-S "$_pkgname" \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DBUILD_TESTING:BOOL='OFF' \
-Dclient:BOOL='ON' \
-Dserver:BOOL='OFF' \
-Dbundled-celt:BOOL='ON' \
-Dbundled-opus:BOOL='OFF' \
-Dbundled-speex:BOOL='OFF' \
-Dupdate:BOOL='OFF' \
-Wno-dev
make -C "$_pkgname/build"
}
package() {
depends+=('libasound.so' 'libdns_sd.so' 'libjack.so' 'libprotobuf.so'
'libpulse.so' 'libsndfile.so')
cd "$_pkgname"
make -C build DESTDIR="$pkgdir" install
# Fix location of libraries
install -d "$pkgdir/usr/lib/$_pkgname"
mv "$pkgdir/usr/lib/"libcelt* "$pkgdir/usr/lib/$_pkgname/"
mv "$pkgdir/usr/lib/plugins/"*.so "$pkgdir/usr/lib/$_pkgname/"
rmdir "$pkgdir/usr/lib/plugins"
# Man page
install -vDm 644 "man/$_pkgname".1 -t "$pkgdir/usr/share/man/man1/"
# License
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname"
}
|