diff options
Diffstat (limited to 'audio/mpd/mpd.SlackBuild')
-rw-r--r-- | audio/mpd/mpd.SlackBuild | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/audio/mpd/mpd.SlackBuild b/audio/mpd/mpd.SlackBuild index 9ccb34020f..76589b526a 100644 --- a/audio/mpd/mpd.SlackBuild +++ b/audio/mpd/mpd.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for mpd @@ -23,13 +23,29 @@ # 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} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -39,7 +55,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -84,6 +104,8 @@ cd build meson .. \ -Dsystemd=disabled \ -Dpulse=$PULSE \ + -Dupnp=disabled \ + -Dmikmod=disabled \ --buildtype=release \ --infodir=/usr/info \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -91,8 +113,8 @@ cd build --mandir=/usr/man \ --prefix=/usr \ --sysconfdir=/etc - ${NINJA:-ninja} - DESTDIR=$PKG ninja install + "${NINJA:=ninja}" + DESTDIR=$PKG $NINJA install cd .. strip $PKG/usr/bin/$PRGNAM @@ -105,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 @@ -120,4 +136,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |