Browse Source

ap/mpd: Upgraded to mpd-0.21.16.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
b669467744
  1. 1
      ap/mpd/mpd-0.20.6.tar.xz.sha256
  2. 1
      ap/mpd/mpd-0.21.16.tar.xz.sha256
  3. 63
      ap/mpd/mpd.SlackBuild

1
ap/mpd/mpd-0.20.6.tar.xz.sha256

@ -1 +0,0 @@
f4055e1189e5cc00e83706b2e0b5ead924ced0303e073d7802ee9f9a8eba4b47 mpd-0.20.6.tar.xz

1
ap/mpd/mpd-0.21.16.tar.xz.sha256

@ -0,0 +1 @@
30cf1bddf7d7388487276745ad3515f134e07f0c57f9f97cb2b5d3befd4a4d92 mpd-0.21.16.tar.xz

63
ap/mpd/mpd.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009-2013,2015-2017 Damien Goutte-Gattat
# Copyright (C) 2009-2013,2015-2017,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,15 +23,12 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest mpd sourcecode is available at: <http://www.musicpd.org/>.
#
# Recommends: ap/fluidsynth, l/faad2, l/opus, xap/ffmpeg
# Optional: ap/jack
# Source package infos
NAMESRC=${NAMESRC:-mpd}
VERSION=${VERSION:-0.20.6}
VERSION=${VERSION:-0.21.16}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.xz}
WGET=${WGET:-http://www.musicpd.org/download/mpd/0.20/$ARCHIVE}
WGET=${WGET:-http://www.musicpd.org/download/mpd/0.21/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-mpd}
@ -84,46 +81,44 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
LDFLAGS=-lnsl \
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$NAME \
--enable-fluidsynth \
--enable-opus \
--enable-aac \
--enable-ffmpeg
make -j $JOBS
make install-strip DESTDIR=$PKG
meson setup \
--prefix /usr \
--libdir /usr/lib64 \
--mandir /usr/man \
--sysconfdir /etc \
--buildtype release \
--strip \
out .
ninja -C out
DESTDIR=$PKG ninja -C out install
# Install man pages since the Meson-based build system
# can't be bothered to do it by itself...
mkdir -p $PKG/usr/man/man{1,5}
gzip -9 -c doc/mpd.1 > $PKG/usr/man/man1/mpd.1.gz
gzip -9 -c doc/mpd.conf.5 > $PKG/usr/man/man5/mpd.conf.5.gz
# Move the documentation to the right place since Meson
# does not have a --docdir option...
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc/mpd $PKG/usr/doc/$NAME
rmdir $PKG/usr/share/doc
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Build documentation if Sphinx is available
if type -p sphinx-build ; then
sphinx-build -b html doc $PKG/usr/doc/$NAME/html
fi
# Install config file and rc script
install -D -m 644 $CWD/rc.mpd $PKG/etc/rc.d/rc.mpd.new
install -m 644 doc/mpdconf.example $PKG/etc/mpd.conf.new
# Install the documentation
for doc in developer protocol user ; do
xmlto -o $PKG/usr/doc/$NAME html-nochunks doc/$doc.xml
done
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
fluidsynth
faad2
ffmpeg
opus
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save