aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/pulseaudio/APKBUILD
blob: 54799d0ff57dba9e6431d206b6f317cf44519261 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=pulseaudio
pkgver=4.0
pkgrel=1
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"
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.xz
	$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
}

build() {
	cd "$_builddir"
	./configure --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 \
		|| return 1
	make || return 1
}

package() {
        cd "$_builddir"
        make DESTDIR="$pkgdir" install || return 1
        rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/*/*.la
        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/lib/pulseaudio || return 1
	
	mv "$pkgdir"/etc/pulse/client.conf \
		"$subpkgdir"/etc/pulse || return 1
	
	for i in pacat pactl padsp 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 || return 1

	mv "$pkgdir"/usr/lib/pulseaudio/libpulsedsp.so \
		"$pkgdir"/usr/lib/pulseaudio/libpulsecommon-*.so \
		"$subpkgdir"/usr/lib/pulseaudio || return 1
}

md5sums="591f211db2790a7e4d222f2dc6858db3  pulseaudio-4.0.tar.xz
fd33954332955e8ef6a8f9f1f5c58e80  pulseaudio.initd
bf7487ba2c48fc8a56bca41c97a18934  pulseaudio.confd"
sha256sums="35ceb36bb1822fe54f0b5e4863b4f486769fdfb8ff2111f01fd8778928f9cdae  pulseaudio-4.0.tar.xz
60e4571a8af0437bd99cfd858fde1e6223544a60e591febf25e55e4a2918ff59  pulseaudio.initd
c03661e8cc902d27ff6b52f291207f2b008957571b942abdd92a873a52aae0dd  pulseaudio.confd"
sha512sums="7cfb57b15943ec5239f23b90637ab7ab421ac57cf05312030bb348ee7d72a70343716b9bf79035b2426e820984cf8179285548b8acf0b7232defcd8b9ad32e83  pulseaudio-4.0.tar.xz
c510ddc71509435946a4f5a29ee2deb124fddec1a078433651bee99fd71424a0673c6b67015c2b737878e0e6e1da0b0ee4935e419a00cbfe74d6f8c8dc91f243  pulseaudio.initd
75b54581591519d63a3362b155c0f9b0501a60763ab394693a456c44d0216138cf3a40bdd0f7442028663bc045e9ffee286f8f8eaf2ee3bb17379b43615fee0e  pulseaudio.confd"