aboutsummaryrefslogtreecommitdiff
path: root/audio/mpd/mpd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mpd/mpd.SlackBuild')
-rw-r--r--audio/mpd/mpd.SlackBuild25
1 files changed, 14 insertions, 11 deletions
diff --git a/audio/mpd/mpd.SlackBuild b/audio/mpd/mpd.SlackBuild
index 2b396b72a589e..f332d1be068ed 100644
--- a/audio/mpd/mpd.SlackBuild
+++ b/audio/mpd/mpd.SlackBuild
@@ -23,13 +23,23 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 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.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -42,9 +52,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 +101,8 @@ cd build
meson .. \
-Dsystemd=disabled \
-Dpulse=$PULSE \
+ -Dupnp=disabled \
+ -Dmikmod=disabled \
--buildtype=release \
--infodir=/usr/info \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -115,13 +124,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
+gzip -9 $PKG/usr/man/man*/*
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild