blob: 8937f001e6ddc65eb9e71c76b0353fe0a9db2af4 (
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
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Sebastian Wicki <gandro@gmx.net>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=mpd
pkgver=0.23.9
case $pkgver in
*.*.*) _branch=${pkgver%.*};;
*.*) _branch=$pkgver;;
esac
pkgrel=1
pkgdesc="Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs"
url="https://musicpd.org/"
pkgusers="mpd"
pkggroups="mpd audio"
# s390x: limited by pipewire
arch="all !s390x"
license="GPL-2.0-or-later"
makedepends="
alsa-lib-dev
avahi-dev
boost-dev
curl-dev
expat-dev
faad2-dev
ffmpeg-dev
flac-dev
glib-dev
gtest-dev
icu-dev
jack-dev
lame-dev
libao-dev
libcap
libcdio-paranoia-dev
libid3tag-dev
libmad-dev
libmodplug-dev
libmpdclient-dev
libnfs-dev
libogg-dev
libsamplerate-dev
libshout-dev
libvorbis-dev
meson
opus-dev
pulseaudio-dev
py3-attrs
py3-sphinx
samba-dev
soxr-dev
wavpack-dev
pipewire-dev
fmt-dev
"
checkdepends="gtest"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-dbg $pkgname-openrc"
source="https://www.musicpd.org/download/mpd/$_branch/mpd-$pkgver.tar.xz
stacksize.patch
mpd.initd
mpd.confd
"
# secfixes:
# 0:
# - CVE-2020-7465
# - CVE-2020-7466
build() {
abuild-meson \
-Dshout=enabled \
-Dopus=enabled \
-Dmodplug=enabled \
-Dnfs=enabled \
-Dsmbclient=enabled \
-Dffmpeg=enabled \
-Dlibmpdclient=enabled \
-Dcdio_paranoia=enabled \
-Dzeroconf=avahi \
-Dtest=true \
-Ddocumentation=enabled \
-Dwavpack=enabled \
-Dpipewire=enabled \
-Dsnapcast=true \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
meson test --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
# provide a config that works by default
install -d "$pkgdir"/etc
sed -e 's:\#user.*:user\t\t"mpd":' \
-e 's:\#log_file.*:log_file\t\t"syslog":' \
doc/mpdconf.example > "$pkgdir"/etc/mpd.conf
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname
install -d -g audio -o mpd -m775 \
"$pkgdir"/var/run/mpd \
"$pkgdir"/var/log/mpd \
"$pkgdir"/var/lib/mpd \
"$pkgdir"/var/lib/mpd/.cache \
"$pkgdir"/var/lib/mpd/playlists \
"$pkgdir"/var/lib/mpd/music
}
sha512sums="
67db093e35693f79267f955463ecaa284773b5e47a38f1548a0d16c9ba82aecc3434fd805e224b78782c5978c07e16d26f7632823e536f5304f557985f028d6e mpd-0.23.9.tar.xz
f60f6f3e921d20732c1a4c31a97f28660b43fd649e767d6c39661b6a90145231a79ad3f740ae0d706380b245ad040e98b661a513463c54cea161d1f64fc261e0 stacksize.patch
3ee3a85b34d328090bc66892cba643443296bf126197f93becffa3d4c91742b600da5e17845337f17ac3714cbdcadde89bbd1bec797eb1966ab8208d7b221e7b mpd.initd
60119784963ab3a745282816bfadced2b6a5b714a57f4f6eff9fb7b649fe7c22e7b840d4b40d607bc2a1392524081836d52ac04bd141caa50a034277bca3e7e1 mpd.confd
"
|