summaryrefslogtreecommitdiff
path: root/audio/pulseaudio/pulseaudio.SlackBuild
diff options
context:
space:
mode:
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 c7924bbcce..a81e299cbd 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