summaryrefslogtreecommitdiff
path: root/repo/media/mpd.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-01 21:21:05 +0000
committerdavidovski <david@davidovski.xyz>2022-05-01 21:21:05 +0000
commit606bc59d0f8f67815c6a717843835477d44db6b3 (patch)
tree687b3fe5bc844b90a3841e1ea543aa9f9934a93a /repo/media/mpd.xibuild
parent1084afc3c4d9c83e61620de60ba59a4393a33cb0 (diff)
added ungoogled chromium
Diffstat (limited to 'repo/media/mpd.xibuild')
-rw-r--r--repo/media/mpd.xibuild42
1 files changed, 34 insertions, 8 deletions
diff --git a/repo/media/mpd.xibuild b/repo/media/mpd.xibuild
index 0907e1e..afedb54 100644
--- a/repo/media/mpd.xibuild
+++ b/repo/media/mpd.xibuild
@@ -1,22 +1,48 @@
#!/bin/sh
NAME="mpd"
-DESC="Minimalist command line interface to MPD"
+DESC="Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs"
-MAKEDEPS="meson ninja "
-DEPS="musl libmpdclient "
+MAKEDEPS="meson ninja boost"
+DEPS="alsa-lib sbase expat faad2 flac fmt icu lame libao bzip2 libid3tag libmad libogg pulseaudio libsamplerate libmpdclient libvorbis musl opus pipewire soxr wavpack zlib sqlite3 ffmpeg4"
-PKG_VER=0.34
-SOURCE="https://www.musicpd.org/download/mpc/${PKG_VER%.*}/mpc-$PKG_VER.tar.xz"
+PKG_VER=0.23.6
+SOURCE="https://www.musicpd.org/download/mpd/${PKG_VER%.*}/mpd-$PKG_VER.tar.xz"
+ADDITIONAL="libcdio-paa-version.patch libcdio-paranoia-version.patch mpd.confd mpd.initd"
+
+prepare () {
+ apply_patches
+}
build () {
- mkdir build &&
- cd build &&
+ cd build
meson --prefix=/usr \
- .. &&
+ -Dopus=enabled \
+ -Ddocumentation=enabled \
+ -Dlibmpdclient=enabled \
+ -Dpipewire=enabled \
+ -Dwavpack=enabled \
+ -Dffmpeg=enabled \
+ .. &&
+
ninja
}
package () {
DESTDIR=$PKG_DEST ninja install
+ cd ..
+ install -d $PKG_DEST/etc
+ sed -e 's:\#user.*:user\t\t"mpd":' \
+ -e 's:\#log_file.*:log_file\t\t"syslog":' \
+ doc/mpdconf.example > $PKG_DEST/etc/mpd.conf
+ install -m755 -D mpd.initd \
+ "$PKG_DEST"/etc/init.d/mpd
+ install -m644 -D mpd.confd \
+ "$PKG_DEST"/etc/conf.d/mpd
+ install -d -m775 \
+ "$PKG_DEST"/var/run/mpd \
+ "$PKG_DEST"/var/log/mpd \
+ "$PKG_DEST"/var/lib/mpd \
+ "$PKG_DEST"/var/lib/mpd/playlists \
+ "$PKG_DEST"/var/lib/mpd/music
}