aboutsummaryrefslogtreecommitdiffstats
path: root/main/mumble/APKBUILD
blob: ff7b3dd2979270c517e9bc6e4700999cdb90b0b8 (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
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=mumble
pkgver=1.2.9
pkgrel=0
pkgdesc="Mumble is an open source, low-latency, high quality voice chat software primarily intended for use while gaming"
url="http://mumble.sourceforge.net/"
arch="all"
license="BSD"
depends="qt-sqlite"
depends_dev="qt-dev libsndfile-dev boost-dev avahi-dev protobuf-dev libxi-dev
	speex-dev speexdsp-dev libcap-dev"
makedepends="$depends_dev"
install="murmur.pre-install"
pkgusers="murmur"
pkggroups="murmur"
subpackages="$pkgname-doc murmur murmur-doc:murmur_doc"
source="http://downloads.sourceforge.net/mumble/$pkgname-$pkgver.tar.gz
	murmur.initd
	"

_builddir=$srcdir/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	qmake -recursive main.pro \
		CONFIG+="no-speechd no-g15 no-update no-ice bundled-celt no-bundled-speex" \
		|| return 1
	make release
}

package() {
	cd "$_builddir"

	install -m755 -D ./release/mumble ${pkgdir}/usr/bin/mumble
	install -m755 -D ./release/libmumble.so.${pkgver} ${pkgdir}/usr/lib/mumble/libmumble.so.${pkgver}
	ln -s libmumble.so.${pkgver} ${pkgdir}/usr/lib/mumble/libmumble.so
	ln -s libmumble.so.${pkgver} ${pkgdir}/usr/lib/mumble/libmumble.so.1
	ln -s libmumble.so.${pkgver} ${pkgdir}/usr/lib/mumble/libmumble.so.1.2
	install -m755 -D ./release/plugins/liblink.so ${pkgdir}/usr/lib/mumble/liblink.so
	install -m755 -D ./release/plugins/libmanual.so ${pkgdir}/usr/lib/mumble/libmanual.so
	install -m755 -D ./release/libcelt* ${pkgdir}/usr/lib/mumble/
	install -m755 -d "${pkgdir}/usr/share/man/man1/"
	install -m644 ./man/${pkgname}.1 "${pkgdir}/usr/share/man/man1/"
	install -Dm644 ./LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

murmur() {
	pkgdesc="Murmur is the server component of Mumble"

	cd "$_builddir"

	install -o murmur -g murmur -dm755 ${subpkgdir}/var/lib/murmur \
		|| return 1
	install -Dm755 ./release/murmurd ${subpkgdir}/usr/bin/murmurd \
		|| return 1
	install -Dm644 ./scripts/murmur.ini ${subpkgdir}/etc/murmur.ini \
		|| return 1
	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 || return 1
	sed "s/mumble-server/murmur/" \
		-i ${subpkgdir}/etc/dbus-1/system.d/murmurd.conf
	install -D -m755 ${srcdir}/murmur.initd \
		"${subpkgdir}"/etc/init.d/murmur
}

murmur_doc() {
	pkgdesc="Murmur is the server component of Mumble"
	arch="noarch"

	cd "$_builddir"

	install -Dm644 ./man/murmurd.1 ${subpkgdir}/usr/share/man/man1/murmurd.1
	install -Dm644 ./LICENSE ${subpkgdir}/usr/share/licenses/murmur/LICENSE
}

md5sums="85decb9a1efb13e7558fab6265f81ad8  mumble-1.2.9.tar.gz
a33eeda77b1a5d10fbebaefd9c54ec8f  murmur.initd"
sha256sums="4bd17e85613267f1df39e8328de5053586576d3de4659d3f33833282c4322cbb  mumble-1.2.9.tar.gz
2fa2104cc57a53145b0e962e04d90c49e3a70b9dfc3c78202948f97157c961d8  murmur.initd"
sha512sums="dfd3cf620e2b65aafa55cb3d021e626d2c37683da6c31a1787a35b94254c446d1816ad4f05fa004dedeab6edd5c4696ce4ef8033f465b3d2c3cdfbfea97cf5d0  mumble-1.2.9.tar.gz
c74ade232146a180448cb0027503f59642000bee50613a1fb99162cdc4bc81089ab4e84e51b0bbdac5c176eb52b76e6bd2b3ec790a9148135a1fc050569921c3  murmur.initd"