aboutsummaryrefslogtreecommitdiff
path: root/audio/pulseaudio/pulseaudio.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@iinet.net.au>2014-10-13 06:19:44 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-10-13 06:19:44 +0700
commit3bca4d2b63c8b80833a161acd98087aa701c71ce (patch)
tree3e19fe20d5edbd67d2fe5459b5e2fe18b4183f30 /audio/pulseaudio/pulseaudio.SlackBuild
parent46a410d0f6d63b6e29d27965c5cf7248f7b068a4 (diff)
audio/pulseaudio: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/pulseaudio/pulseaudio.SlackBuild')
-rw-r--r--audio/pulseaudio/pulseaudio.SlackBuild20
1 files changed, 6 insertions, 14 deletions
diff --git a/audio/pulseaudio/pulseaudio.SlackBuild b/audio/pulseaudio/pulseaudio.SlackBuild
index c7924bbcce637..a81e299cbd7bf 100644
--- a/audio/pulseaudio/pulseaudio.SlackBuild
+++ b/audio/pulseaudio/pulseaudio.SlackBuild
@@ -7,7 +7,7 @@
PRGNAM=pulseaudio
VERSION=${VERSION:-5.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -37,16 +37,6 @@ else
LIBDIRSUFFIX=""
fi
-if ! grep -q ^pulse: /etc/group ; then
- echo " Must have a pulse group to run this script."
- echo " # groupadd -g 216 pulse"
- exit 1
-elif ! grep -q ^pulse: /etc/passwd ; then
- echo " Must have a pulse user to run this script."
- echo " # useradd -g pulse -u 216 -d /var/lib/pulse pulse"
- exit 1
-fi
-
set -eu
rm -rf $PKG
@@ -55,6 +45,10 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
+sed -i -e '/@PA_BINARY@/ imkdir -p \$HOME/.config/pulse' src/daemon/start-pulseaudio-x11.in
+sed -i -e '/@PA_BINARY@/ imkdir -p \$HOME/.config/pulse' src/daemon/start-pulseaudio-kde.in
+echo "X-MATE-Autostart-Phase=Initialization" >>src/daemon/pulseaudio.desktop.in
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -89,9 +83,7 @@ make check
make -j1
make install-strip DESTDIR=$PKG
-mv $PKG/etc/pulse/client.conf $PKG/etc/pulse/client.conf.new
-mv $PKG/etc/pulse/default.pa $PKG/etc/pulse/default.pa.new
-mv $PKG/etc/pulse/daemon.conf $PKG/etc/pulse/daemon.conf.new
+for f in $( find $PKG/etc/pulse/ -type f ) ; do mv $f $f.new ; done
mkdir -p $PKG/etc/rc.d
cp $CWD/rc.pulseaudio $PKG/etc/rc.d/rc.pulseaudio.new