32 lines
797 B
Plaintext
32 lines
797 B
Plaintext
# Description: Music playback daemon
|
|
# URL: https://www.musicpd.org/
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
# Depends on: boost glib libid3tag libmad libvorbis
|
|
# Optional: faad2 flac audiofile
|
|
|
|
name=mpd
|
|
version=0.21.19
|
|
release=1
|
|
source=(https://www.musicpd.org/download/mpd/${version%.*}/$name-$version.tar.xz mpd)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
meson build \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
-Dmpcdec=disabled
|
|
|
|
ninja -C build -j ${JOBS-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
install -d $PKG/etc
|
|
install -m 0644 doc/mpdconf.example $PKG/etc/mpd.conf
|
|
install -D $SRC/mpd $PKG/etc/rc.d/mpd
|
|
|
|
install -D doc/mpd.1 $PKG/usr/share/man/1/mpd.1
|
|
install -D doc/mpd.conf.5 $PKG/usr/share/man/5/mpd.conf.5
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
}
|