diff --git a/src/mpd/pkg.sh b/src/mpd/pkg.sh index cffb981..a1ce3ad 100644 --- a/src/mpd/pkg.sh +++ b/src/mpd/pkg.sh @@ -1,17 +1,27 @@ NAME="mpd" DESC="Music Player Daemon" VERSION="0.23.15" -FILES=("https://github.com/MusicPlayerDaemon/MPD/archive/refs/tags/v$VERSION.tar.gz") + +FILES=("https://github.com/MusicPlayerDaemon/MPD/archive/refs/tags/v${VERSION}.tar.gz") HASHES=("d2865d8f8ea79aa509b1465b99a2b8f3f449fe894521c97feadc2dca85a6ecd2") -DEPENDS=("glibc") + +DEPENDS=( + "alsa-lib" "avahi" "bzip2" + "expat" "ffmpeg" "flac" + "gcc-libs" "icu" "libogg" + "glibc" "curl" "dbus" +) +BUILD=("sphinx" "meson" "systemd") PACKAGE() { - tar xf v$VERSION.tar.gz - cd MPD-$VERSION + tar xf "v${VERSION}.tar.gz" + cd "MPD-${VERSION}" - cd build - meson .. && meson compile - meson install --destdir "$ROOTDIR" + cd build - cd ../.. && rm -r MPD-$VERSION + meson .. + meson compile + meson install --destdir "${ROOTDIR}" + + cd ../.. && rm -r "MPD-${VERSION}" }