blob: 323de76934b4ff22e4ee5940bac58c6ab91ededf (
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
|
# 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.r1232.g1808273e1
pkgrel=1
epoch=1
pkgdesc='An Open Source, low-latency, high quality voice chat software (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')
sha256sums=('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/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
}
build() {
cd "$_pkgname"
_release_id=$(scripts/mumble-version.py -f version)
cmake \
-B build \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-DRELEASE_ID:STRING="$_release_id" \
-Dwarnings-as-errors: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 build
}
package() {
depends+=('libasound.so' 'libdns_sd.so' 'libjack.so' 'libprotobuf.so'
'libpulse.so' 'libsndfile.so')
cd "$_pkgname"
make -C build DESTDIR="$pkgdir" install
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname/"
}
|