forked from ports/contrib
26 lines
735 B
Plaintext
26 lines
735 B
Plaintext
# Description: Music playback daemon
|
|
# URL: https://www.musicpd.org/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: boost ninja meson
|
|
# Optional: faad2 flac audiofile python3-sphinx
|
|
|
|
name=mpd
|
|
version=0.22.2
|
|
release=1
|
|
#source=(https://www.musicpd.org/download/mpd/$version/$name-$version.tar.xz mpd)
|
|
source=(https://www.musicpd.org/download/mpd/${version%.*}/$name-$version.tar.xz mpd)
|
|
|
|
build() {
|
|
meson $name-$version build \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc/mpd \
|
|
-Dmpcdec=disabled
|
|
ninja -C build -j ${JOBS-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
install -Dm 0644 $SRC/$name-$version/doc/mpdconf.example $PKG/etc/mpd/mpd.conf
|
|
install -D $SRC/mpd $PKG/etc/rc.d/mpd
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
}
|