fix: mpd package script cleanup

This commit is contained in:
ngn 2024-08-22 07:59:19 +03:00
parent c4896b08e7
commit 3d6f9e9eeb

View File

@ -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}"
}