summaryrefslogtreecommitdiff
path: root/network/mumble/mumble.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/mumble/mumble.SlackBuild')
-rw-r--r--network/mumble/mumble.SlackBuild45
1 files changed, 36 insertions, 9 deletions
diff --git a/network/mumble/mumble.SlackBuild b/network/mumble/mumble.SlackBuild
index 9bb6d6774f..fe0961ee0a 100644
--- a/network/mumble/mumble.SlackBuild
+++ b/network/mumble/mumble.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Mumble
-# Copyright 2011 James Geboski <jgeboski@gmail.com>
+# Copyright 2011-2012 James Geboski <jgeboski@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -84,9 +84,23 @@ find . \
-exec chmod 644 {} \;
# As of celt-0.11.0, the macro CELT_SET_VBR_RATE has been renamed to
-# CELT_SET_BITRATE. Please make sure you have at least celt 0.11.0,
+# CELT_SET_BITRATE. Please make sure you have at least celt-0.11.0,
# if not comment the line below out.
-sed -i 's/CELT_SET_VBR_RATE/CELT_SET_BITRATE/' src/mumble/AudioInput.cpp
+patch -p1 < $CWD/patches/AudioInput-fix-for-celt-0.11.0.patch
+
+# On GTK+ based envrionments (Ex: XFCE) the MainWindow's icon needed
+# to be directly set.
+patch -p1 < $CWD/patches/MainWindow-set-the-window-icon.patch
+
+# The system's celt-0.11.0 is used, however, celt-0.7.0 is needed
+# to keep compatibility with other Mumble clients.
+cd celt-0.7.0-build
+ qmake \
+ -recursive \
+ celt-0.7.0-build.pro
+
+ make release
+cd -
qmake \
-recursive \
@@ -113,15 +127,28 @@ mkdir -p \
$PKG/usr/share/{applications,pixmaps}
install -m 755 \
- release/mumble release/mumble11x \
+ release/mumble \
+ release/mumble11x \
$PKG/usr/bin
+install -m 775 \
+ release/libcelt0.so.0.7.0 \
+ $PKG/usr/lib${LIBDIRSUFFIX}/mumble
+
+cd $PKG/usr/lib${LIBDIRSUFFIX}/mumble
+ ln -sf libcelt0.so.0.7.0 libcelt0.so.0.7
+ ln -sf libcelt0.so.0.7.0 libcelt0.so.0
+ ln -sf libcelt0.so.0.7.0 libcelt0.so
+cd -
+
install -m 644 \
- man/mumble-overlay.1 man/mumble.1 man/mumble11x.1 \
+ man/mumble-overlay.1 \
+ man/mumble.1 \
+ man/mumble11x.1 \
$PKG/usr/man/man1
install -m 644 scripts/mumble.desktop $PKG/usr/share/applications
-install -m 644 icons/mumble.xpm $PKG/usr/share/pixmaps
+install -m 644 icons/mumble.svg $PKG/usr/share/pixmaps
find release/plugins -type f -name *.so \
-exec install -m 755 {} $PKG/usr/lib${LIBDIRSUFFIX}/mumble \;
@@ -129,11 +156,11 @@ find release/plugins -type f -name *.so \
# If the overlay was built, let's install the library for it
if [ -e release/libmumble.so.$VERSION ]; then
install -m 755 release/libmumble.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}
-
+
cd $PKG/usr/lib${LIBDIRSUFFIX}
ln -sf libmumble.so.$VERSION libmumble.so.1.2
- ln -sf libmumble.so.1.2 libmumble.so.1
- ln -sf libmumble.so.1 libmumble.so
+ ln -sf libmumble.so.$VERSION libmumble.so.1
+ ln -sf libmumble.so.$VERSION libmumble.so
cd -
fi