blob: 068a73cf964e3f92ea2106d16399f101d98abe6a (
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Pedro Filipe <xpecex@outlook.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=pulseaudio
pkgver=12.2
pkgrel=4
pkgdesc="A featureful, general-purpose sound server"
url="http://www.freedesktop.org/wiki/Software/PulseAudio"
arch="all"
license="LGPL-2.1-or-later"
makedepends="m4 automake libtool intltool bash dbus-dev libcap-dev alsa-lib-dev
bluez-dev speexdsp-dev avahi-dev openssl-dev eudev-dev libsndfile-dev
gtk+3.0-dev json-c-dev fftw-dev sbc-dev jack-dev libatomic_ops-dev gettext-dev
autoconf autoconf-archive libsm-dev libice-dev xcb-util-dev libx11-dev"
subpackages="$pkgname-dev $pkgname-bluez libpulse:_libpulse
libpulse-mainloop-glib:_libpulse_mainloop_glib $pkgname-alsa $pkgname-utils
$pkgname-jack $pkgname-zeroconf $pkgname-openrc
$pkgname-bash-completion:bashcomp:noarch $pkgname-zsh-completion:zshcomp:noarch"
install="pulseaudio.post-install"
source="https://freedesktop.org/software/pulseaudio/releases/pulseaudio-$pkgver.tar.xz
$pkgname.initd
$pkgname.confd
disable-desktop.patch
b89d33bb182c42db5ad3987b0e91b7bf62f421e8.patch
300a1a96fa43ee456512843c671bdf1f9c75ca24.patch"
prepare() {
default_prepare
autopoint --force
AUTOPOINT='intltoolize --automake --copy --force' autoreconf -if
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--datadir=/usr/share \
--enable-bluez5 \
--disable-bluez4 \
--disable-nls \
--disable-orc \
--disable-gconf \
--disable-oss-output \
--disable-oss-wrapper \
--disable-tcpwrapper \
--disable-systemd-daemon \
--disable-systemd-journal \
--with-udev-rules-dir=/usr/lib/udev/rules.d \
--disable-rpath \
--disable-esound \
--disable-hal-compat \
--enable-x11 \
--enable-avahi
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
sed -i -e 's/SUBDIRS = src doxygen man po/SUBDIRS = src doxygen/g' Makefile
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
openrc() {
replaces="$pkgname-system" # Backward compatibility
default_openrc
mkdir -p "$subpkgdir"/etc
mv "$pkgdir"/etc/dbus-1 "$subpkgdir"/etc
}
_libpulse() {
replaces="$pkgname-libs"
pkgdesc="Pulseaudio libraries"
mkdir -p "$subpkgdir"/usr/lib \
"$subpkgdir"/etc/pulse
mv "$pkgdir"/usr/lib/pulseaudio \
"$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/libpulse.so.0* \
"$pkgdir"/usr/lib/libpulse-simple.so.0* \
"$subpkgdir"/usr/lib/
mv "$pkgdir"/etc/pulse/client.conf \
"$subpkgdir"/etc/pulse/
}
_libpulse_mainloop_glib() {
pkgdesc="Pulseaudio mainloop-glib library"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libpulse-mainloop-glib.so.* "$subpkgdir"/usr/lib
}
bluez() {
pkgdesc="Pulseaudio bluetooth support"
mkdir -p "$subpkgdir"/usr/lib/pulse-$pkgver/modules
mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/*bluez*.so \
"$pkgdir"/usr/lib/pulse-$pkgver/modules/*bluetooth*.so \
"$subpkgdir"/usr/lib/pulse-$pkgver/modules/
}
alsa() {
pkgdesc="Pulseaudio alsa support"
mkdir -p "$subpkgdir"/usr/lib/pulse-$pkgver/modules
mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/*alsa*.so \
"$subpkgdir"/usr/lib/pulse-$pkgver/modules/
}
utils() {
pkgdesc="Pulseaudio utilities"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/pa* \
"$subpkgdir"/usr/bin/
}
jack() {
pkgdesc="Pulseaudio jack support"
mkdir -p "$subpkgdir"/usr/lib/pulse-$pkgver/modules
mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/*jack*.so \
"$subpkgdir"/usr/lib/pulse-$pkgver/modules/
}
zeroconf() {
pkgdesc="Pulseaudio zeroconf support"
depends="avahi"
mkdir -p "$subpkgdir"/usr/lib/pulse-$pkgver/modules
mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/*avahi*.so \
"$pkgdir"/usr/lib/pulse-$pkgver/modules/*zeroconf*.so \
"$pkgdir"/usr/lib/pulse-$pkgver/modules/*raop*.so \
"$subpkgdir"/usr/lib/pulse-$pkgver/modules/
}
bashcomp() {
depends=""
pkgdesc="Bash completion for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
install -dm755 "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share
}
zshcomp() {
depends=""
pkgdesc="Zsh completion for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
install -dm755 "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/zsh "$subpkgdir"/usr/share
}
sha512sums="877754c1838b3cb042dbc18a5f1cc3cf313ffcaee7a64703330406d1f86279c34f1107634ac3083b158365e6757fbacf5ec406bc3c5788d291de67b77a561a4e pulseaudio-12.2.tar.xz
34fe54ece5df60ce63a7955cd828a2716670fef71f40960698ae5518fdaf9cd599f4d8f8852e2c88d715600a9ad06a38984415e5eb320071012e5eb6e5c1b8b1 pulseaudio.initd
75b54581591519d63a3362b155c0f9b0501a60763ab394693a456c44d0216138cf3a40bdd0f7442028663bc045e9ffee286f8f8eaf2ee3bb17379b43615fee0e pulseaudio.confd
11aaa7a1f015ae2b99c2a74f1d2646b51df4a2243c0d44795abbfb9892b9c34ceb37902f0eefa206790d375bd3945cfefaa381e00f4e846cd325b9344328282b disable-desktop.patch
bd5f34363076b655070add1e1f6fa526766e69c9ba75d7e6aad7e13782ecbd183a0837aa5fc20679c54d3939871497f0c63d3d6dd8a985105263b62dd0aaa3c7 b89d33bb182c42db5ad3987b0e91b7bf62f421e8.patch
fe1f4c4b112b2e756c0cd56dd7990865165e8cfc92a9cd3e14a8e4ac4c359f3d501a24a44fd8bd26258b49ca52cfdd84581ad7509274fbd79a211b60dd9faf7f 300a1a96fa43ee456512843c671bdf1f9c75ca24.patch"
|