summaryrefslogtreecommitdiffstats
path: root/audio/mpd/mpd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mpd/mpd.SlackBuild')
-rw-r--r--audio/mpd/mpd.SlackBuild28
1 files changed, 17 insertions, 11 deletions
diff --git a/audio/mpd/mpd.SlackBuild b/audio/mpd/mpd.SlackBuild
index 2b396b72a5..76589b526a 100644
--- a/audio/mpd/mpd.SlackBuild
+++ b/audio/mpd/mpd.SlackBuild
@@ -23,13 +23,26 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220305 bkw: Modified by SlackBuilds.org:
+# - add fmt to REQUIRES. without this, it was dowloading the fmt source.
+
+# 20220218 bkw: Modified by SlackBuilds.org:
+# - build was failing if libmikmod or libupnp were installed, so I
+# updated to the latest version (0.23.5).
+# - the version update didn't fix it, so libmikmod and libupnp are
+# disabled now (via meson -D options).
+
+# Note to whoever's updating this script in the future: try removing
+# the -Dmikmod=disabled and/or -Dupnp=disabled options. Upstream may
+# fix the issue at some point.
+
# 20200411 bkw: not taking this over, but I'm upgrading it to the latest
# release as part of the migration to fluidsynth-2.x.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mpd
-VERSION=${VERSION:-0.21.22}
+VERSION=${VERSION:-0.23.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -42,9 +55,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -94,6 +104,8 @@ cd build
meson .. \
-Dsystemd=disabled \
-Dpulse=$PULSE \
+ -Dupnp=disabled \
+ -Dmikmod=disabled \
--buildtype=release \
--infodir=/usr/info \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -115,13 +127,7 @@ rm -rf $PKG/usr/share/doc
# Use sample config, without overwriting
install -D -m 644 doc/mpdconf.example $PKG/etc/mpd.conf.new
-# 20200411 bkw: after the switch to meson, man pages aren't installed
-# automatically for some reason.
-for SECT in 1 5; do
- mkdir -p $PKG/usr/man/man$SECT
- cp doc/*.$SECT $PKG/usr/man/man$SECT
- gzip -9 $PKG/usr/man/man$SECT/*.$SECT
-done
+[ -d $PKG/usr/man ] && gzip -9 $PKG/usr/man/man*/*
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild