aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/pulseaudio/APKBUILD
blob: 60a1737d5b6658c9c501277db5cc5cd6cdb3734c (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=pulseaudio
pkgver=5.99.2
pkgrel=0
pkgdesc="A featureful, general-purpose sound server"
url="http://www.freedesktop.org/wiki/Software/PulseAudio"
arch="all"
license="LGPL"
depends=""
depends_dev="glib-dev json-c-dev libsndfile-dev tdb-dev udev-dev dbus-dev speex-dev
	bluez-dev gconf-dev avahi-dev gtk+3.0-dev libsamplerate-dev openssl-dev
	alsa-lib-dev jack-dev check-dev orc-dev libasyncns-dev fftw-dev libice-dev
	libsm-dev libcap-dev"
makedepends="$depends_dev autoconf automake libtool intltool"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="http://freedesktop.org/software/pulseaudio/releases/pulseaudio-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	"

_builddir="$srcdir"/pulseaudio-$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
	export LIBS="-lcap"      ### capability.h detection broken in ./configure ###
	export LDFLAGS="-lintl"  ### https://bugs.gentoo.org/528986?id=528986 ###
}

build() {
	cd "$_builddir"
	./configure --build=$CBUILD \
                --host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--with-udev-rules-dir=/usr/lib/udev/rules.d \
		--with-database=tdb \
		--disable-tcpwrap \
		--disable-default-build-tests \
		--without-caps \
		--enable-x11 \
		|| return 1
	make || return 1
}

package() {
        cd "$_builddir"
	export LIBRARY_PATH="$_builddir/src/.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
	make -j1 DESTDIR="$pkgdir" install \
		bashcompletiondir=/usr/share/bash-completion/completions || return 1
        rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/*/*.la
        rm -rf "$pkgdir"/etc/dbus-1
	install -D -m755 "$srcdir"/$pkgname.initd \
                "$pkgdir"/etc/init.d/$pkgname || return 1
        install -D -m644 "$srcdir"/$pkgname.confd \
                "$pkgdir"/etc/conf.d/$pkgname || return 1
}

libs() {
	pkgdesc="Pulseaudio libraries"
	depends=""
	cd "$_builddir"
	mkdir -p "$subpkgdir"/etc/pulse \
		"$subpkgdir"/usr/bin \
		"$subpkgdir"/usr/share/bash-completion \
		"$subpkgdir"/usr/lib/pulseaudio || return 1

	mv "$pkgdir"/etc/pulse/client.conf \
		"$subpkgdir"/etc/pulse || return 1

	for i in pacat pactl pacmd pamon paplay parec parecord; do
		mv "$pkgdir"/usr/bin/$i \
			"$subpkgdir"/usr/bin/ || return 1
	done

	mv "$pkgdir"/usr/lib/libpulse-simple.so* \
		"$pkgdir"/usr/lib/libpulse-mainloop-glib.so* \
		"$subpkgdir"/usr/lib/pulseaudio/ || return 1

	mv "$pkgdir"/usr/share/bash-completion \
                "$subpkgdir"/usr/share/ || return 1
}

md5sums="c10bd740da75f8320640482e4a65a782  pulseaudio-5.99.2.tar.gz
305e790e7eced01d3de681379f8f3bc4  pulseaudio.initd
bf7487ba2c48fc8a56bca41c97a18934  pulseaudio.confd"
sha256sums="1ec14af9c4e23b6056caf7cef9ff88300afb553e6b07cab1e1fe8ac8c5ed1756  pulseaudio-5.99.2.tar.gz
c5e427c438e950353a7037d5784cdb91e6bcdd55def6635d8a6387230fbfca2a  pulseaudio.initd
c03661e8cc902d27ff6b52f291207f2b008957571b942abdd92a873a52aae0dd  pulseaudio.confd"
sha512sums="340dfa5fbbf36d9882a15e62fa9eb9c801da19a79c20fe7c89613d8f362782d07adcae139bcf2c4d2f4234338a186ffa942da7da7b421d64d586ca727f6a7f1c  pulseaudio-5.99.2.tar.gz
d20c1d118a51fa30b28a522ef0e607bd005c098291650aed45ed989d1377326484f1d3549ada38bc5a47f80f339109cdff6a9133359c12fae04b51060b2393e1  pulseaudio.initd
75b54581591519d63a3362b155c0f9b0501a60763ab394693a456c44d0216138cf3a40bdd0f7442028663bc045e9ffee286f8f8eaf2ee3bb17379b43615fee0e  pulseaudio.confd"