ap/mpd: Upgraded to mpd-0.20.6.

slackware-14.2
Damien Goutte-Gattat 2017-03-17 12:13:31 +01:00
parent 792ba53f83
commit 3ed0683d46
3 changed files with 17 additions and 8 deletions

View File

@ -1 +0,0 @@
88d98884a262af3be74e2791ae9e5eb898f6dfbb mpd-0.19.17.tar.xz

View File

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

View File

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009-2013,2015,2016 Damien Goutte-Gattat
# Copyright (C) 2009-2013,2015-2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -24,14 +24,14 @@
#
# Latest mpd sourcecode is available at: <http://www.musicpd.org/>.
#
# Recommends: ap/fluidsynth, l/faad2, xap/ffmpeg
# Recommends: ap/fluidsynth, l/faad2, l/opus, xap/ffmpeg
# Optional: ap/jack
# Source package infos
NAMESRC=${NAMESRC:-mpd}
VERSION=${VERSION:-0.19.17}
VERSION=${VERSION:-0.20.6}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.xz}
WGET=${WGET:-http://www.musicpd.org/download/mpd/0.19/$ARCHIVE}
WGET=${WGET:-http://www.musicpd.org/download/mpd/0.20/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-mpd}
@ -76,7 +76,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -94,8 +94,9 @@ CXXFLAGS=$CPUOPT \
--mandir=/usr/man \
--docdir=/usr/doc/$NAME \
--enable-fluidsynth \
--enable-bzip2 \
--enable-iso9660
--enable-opus \
--enable-aac \
--enable-ffmpeg
make -j $JOBS
make install-strip DESTDIR=$PKG
@ -115,6 +116,14 @@ done
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