From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/mpd/libcdio-paa-version.patch | 266 ++++++++++++++++++++++++++++++++ repo/mpd/libcdio-paranoia-version.patch | 13 ++ repo/mpd/mpd.confd | 7 + repo/mpd/mpd.initd | 25 +++ repo/mpd/mpd.xibuild | 48 ++++++ 5 files changed, 359 insertions(+) create mode 100644 repo/mpd/libcdio-paa-version.patch create mode 100644 repo/mpd/libcdio-paranoia-version.patch create mode 100644 repo/mpd/mpd.confd create mode 100644 repo/mpd/mpd.initd create mode 100644 repo/mpd/mpd.xibuild (limited to 'repo/mpd') diff --git a/repo/mpd/libcdio-paa-version.patch b/repo/mpd/libcdio-paa-version.patch new file mode 100644 index 0000000..82612b1 --- /dev/null +++ b/repo/mpd/libcdio-paa-version.patch @@ -0,0 +1,266 @@ + + + +aports - Alpine packages build scripts + + + + + + + + + +
+ + + + +
+aboutsummaryrefslogtreecommitdiffstats
+ + + +
+
+
Not found
+
+ +
+ + diff --git a/repo/mpd/libcdio-paranoia-version.patch b/repo/mpd/libcdio-paranoia-version.patch new file mode 100644 index 0000000..44810b3 --- /dev/null +++ b/repo/mpd/libcdio-paranoia-version.patch @@ -0,0 +1,13 @@ +diff --git a/src/input/plugins/meson.build b/src/input/plugins/meson.build +index 7322365..65ff564 100644 +--- a/src/input/plugins/meson.build ++++ b/src/input/plugins/meson.build +@@ -10,7 +10,7 @@ if alsa_dep.found() + input_plugins_sources += 'AlsaInputPlugin.cxx' + endif + +-libcdio_paranoia_dep = dependency('libcdio_paranoia', version: '>= 10.2+0.93+1', required: get_option('cdio_paranoia')) ++libcdio_paranoia_dep = dependency('libcdio_paranoia', required: get_option('cdio_paranoia')) + input_features.set('ENABLE_CDIO_PARANOIA', libcdio_paranoia_dep.found()) + if libcdio_paranoia_dep.found() + input_plugins_sources += 'CdioParanoiaInputPlugin.cxx' diff --git a/repo/mpd/mpd.confd b/repo/mpd/mpd.confd new file mode 100644 index 0000000..720306e --- /dev/null +++ b/repo/mpd/mpd.confd @@ -0,0 +1,7 @@ +# conf.d file for music player daemon + +# +# Specify daemon $OPTS here. +# + +OPTS="" diff --git a/repo/mpd/mpd.initd b/repo/mpd/mpd.initd new file mode 100644 index 0000000..817583c --- /dev/null +++ b/repo/mpd/mpd.initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run + +# init.d file for music player daemon + +supervisor=supervise-daemon + +name="Music Player Daemon" +description="A daemon for playing music" + +command=/usr/bin/mpd +command_args="$MPD_OPTS" +command_args_foreground="--no-daemon" + +command_user="${M_USER:-mpd}:${M_GROUP:-audio}" + +depend() { + need localmount + use net netmount nfsmount esound pulseaudio + after firewall +} + +start_pre() { + checkpath --directory --quiet \ + --owner "${M_USER:-mpd}" --mode 0775 /var/run/mpd +} diff --git a/repo/mpd/mpd.xibuild b/repo/mpd/mpd.xibuild new file mode 100644 index 0000000..1d8853a --- /dev/null +++ b/repo/mpd/mpd.xibuild @@ -0,0 +1,48 @@ +#!/bin/sh + +NAME="mpd" +DESC="Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs" + +MAKEDEPS="meson ninja boost" +DEPS="alsa-lib sbase expat faad2 flac fmt icu lame bzip2 libid3tag libmad libogg pulseaudio libsamplerate libmpdclient libvorbis musl opus pipewire soxr wavpack zlib sqlite3 ffmpeg4" + +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 () { + 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 +} -- cgit v1.2.1