mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
audio/mpd: Miscellaneous cleanups.
This commit is contained in:
parent
f3e6135fae
commit
94ab93443c
2 changed files with 16 additions and 7 deletions
|
@ -5,8 +5,8 @@ provides control for music playback over a local network. It also makes
|
|||
a great desktop music player, especially if you are a console junkie,
|
||||
like frontend options, or restart X often.
|
||||
|
||||
Some optional dependencies include libshout, libmms, libsamplerate,
|
||||
libmpcdec, lame, faac, faad2, ffmpeg, and jack.
|
||||
Some optional dependencies include libshout, libmms, libmpcdec, lame,
|
||||
faac, faad2, ffmpeg, and jack.
|
||||
|
||||
NOTE: You will have to create the ~/.mpd/playlists directory manually.
|
||||
Also be sure to edit the config file (/etc/mpd.conf) if needed before
|
||||
|
|
|
@ -24,10 +24,19 @@
|
|||
|
||||
PRGNAM=mpd
|
||||
VERSION=0.15.9
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) export ARCH=i486 ;;
|
||||
arm*) export ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) export ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-mpd
|
||||
|
@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then
|
|||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -73,10 +85,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
|||
# Use sample config, without overwriting
|
||||
install -D -m 644 doc/mpdconf.example $PKG/etc/mpd.conf.new
|
||||
|
||||
( cd $PKG/usr/man || exit 1
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
Loading…
Reference in a new issue