summaryrefslogtreecommitdiff
path: root/extra/kdemultimedia-kmix
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-06-17 03:27:11 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-06-17 03:27:11 +0000
commit6459b84bf754eda5323f40eb7af76dde65b63251 (patch)
tree81947a270848520d4cf2f9d1c5ce91ced54fcdff /extra/kdemultimedia-kmix
parent942111e62628e9a5c4729563215b1cfb8911735e (diff)
Tue Jun 17 03:23:47 UTC 2014
Diffstat (limited to 'extra/kdemultimedia-kmix')
-rw-r--r--extra/kdemultimedia-kmix/PKGBUILD22
-rw-r--r--extra/kdemultimedia-kmix/use-qdbus-qt4.patch59
2 files changed, 74 insertions, 7 deletions
diff --git a/extra/kdemultimedia-kmix/PKGBUILD b/extra/kdemultimedia-kmix/PKGBUILD
index 9d20fbd9a..c415bbcf1 100644
--- a/extra/kdemultimedia-kmix/PKGBUILD
+++ b/extra/kdemultimedia-kmix/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 214912 2014-06-10 17:55:11Z svenstaro $
+# $Id: PKGBUILD 215125 2014-06-14 15:26:06Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=kdemultimedia-kmix
pkgver=4.13.2
-pkgrel=1
+pkgrel=2
pkgdesc="KDE volume control program"
url='http://kde.org/applications/multimedia/kmix/'
arch=('i686' 'x86_64')
@@ -12,12 +12,20 @@ groups=('kde' 'kdemultimedia')
depends=('kdebase-runtime')
makedepends=('cmake' 'automoc4')
install="${pkgname}.install"
-source=("http://download.kde.org/stable/${pkgver}/src/kmix-${pkgver}.tar.xz")
-sha1sums=('03f676426a9afbc9b0395239d8950319e786a019')
+source=("http://download.kde.org/stable/${pkgver}/src/kmix-${pkgver}.tar.xz"
+ 'use-qdbus-qt4.patch')
+sha1sums=('03f676426a9afbc9b0395239d8950319e786a019'
+ 'f89a076c5a29c51d213864e27d07baf5400ece03')
-build() {
- cd "${srcdir}"
+prepare() {
mkdir build
+
+ cd kmix-${pkgver}
+ # FS#40786
+ patch -p1 -i "${srcdir}"/use-qdbus-qt4.patch
+}
+
+build() {
cd build
cmake ../kmix-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
@@ -27,6 +35,6 @@ build() {
}
package() {
- cd "${srcdir}"/build
+ cd build
make DESTDIR="${pkgdir}" install
}
diff --git a/extra/kdemultimedia-kmix/use-qdbus-qt4.patch b/extra/kdemultimedia-kmix/use-qdbus-qt4.patch
new file mode 100644
index 000000000..462a25cf6
--- /dev/null
+++ b/extra/kdemultimedia-kmix/use-qdbus-qt4.patch
@@ -0,0 +1,59 @@
+--- kmix-4.13.2/apps/kmixremote~ 2014-06-14 15:17:06.856474667 +0000
++++ kmix-4.13.2/apps/kmixremote 2014-06-14 15:17:44.759594763 +0000
+@@ -28,7 +28,7 @@
+ # Prints the mixer DBUS ID's on the console. leaving out the "/Mixers/" prefix
+ function listMixers
+ {
+- qdbus org.kde.kmix /Mixers org.freedesktop.DBus.Properties.Get org.kde.KMix.MixSet mixers | cut -f3 -d/
++ qdbus-qt4 org.kde.kmix /Mixers org.freedesktop.DBus.Properties.Get org.kde.KMix.MixSet mixers | cut -f3 -d/
+ errorCode=$?
+ if test $errorCode != 0; then
+ echo "Error $errorCode listing mixers. KMix is not running."
+@@ -38,7 +38,7 @@
+ # Prints the mixer control DBUS ID's of the given mixer on the console. leaving out the "/Mixers/" prefix
+ function listControls
+ {
+- qdbus org.kde.kmix $1 org.freedesktop.DBus.Properties.Get org.kde.KMix.Mixer controls | cut -f4 -d/
++ qdbus-qt4 org.kde.kmix $1 org.freedesktop.DBus.Properties.Get org.kde.KMix.Mixer controls | cut -f4 -d/
+ errorCode=$?
+ if test $errorCode != 0; then
+ echo "Error $errorCode listing controls. KMix is not running."
+@@ -47,8 +47,8 @@
+
+ command=""
+
+-if ! type qdbus >/dev/null 2>&1 ; then
+- exit_with_error "$0 requires qdbus, but it cannot be found. Please install or check \$PATH"
++if ! type qdbus-qt4 >/dev/null 2>&1 ; then
++ exit_with_error "$0 requires qdbus-qt4, but it cannot be found. Please install or check \$PATH"
+ fi
+
+ # Read args
+@@ -58,8 +58,8 @@
+ if test -z "$arg"; then
+ break
+ elif test "x--master" = "x$arg"; then
+- mixer=`qdbus org.kde.kmix /Mixers org.kde.KMix.MixSet.currentMasterMixer`
+- control=`qdbus org.kde.kmix /Mixers org.kde.KMix.MixSet.currentMasterControl`
++ mixer=`qdbus-qt4 org.kde.kmix /Mixers org.kde.KMix.MixSet.currentMasterMixer`
++ control=`qdbus-qt4 org.kde.kmix /Mixers org.kde.KMix.MixSet.currentMasterControl`
+ elif test "x--help" = "x$arg" -o "x-h" = "x$arg"; then
+ usage
+ exit 0
+@@ -113,13 +113,13 @@
+ # --- EXECUTE PHASE --------------------------------------------------------------------------------------------------
+ if test "xget" = "x$command"; then
+ # GET
+- qdbus org.kde.kmix $targetControl org.freedesktop.DBus.Properties.Get org.kde.KMix.Control volume
++ qdbus-qt4 org.kde.kmix $targetControl org.freedesktop.DBus.Properties.Get org.kde.KMix.Control volume
+ elif test "xset" = "x$command"; then
+ # SET
+- qdbus org.kde.kmix $targetControl org.freedesktop.DBus.Properties.Set org.kde.KMix.Control volume $genericArg
++ qdbus-qt4 org.kde.kmix $targetControl org.freedesktop.DBus.Properties.Set org.kde.KMix.Control volume $genericArg
+ elif test "xmute" = "x$command"; then
+ # MUTE
+- qdbus org.kde.kmix $targetControl org.freedesktop.DBus.Properties.Set org.kde.KMix.Control mute $genericArg
++ qdbus-qt4 org.kde.kmix $targetControl org.freedesktop.DBus.Properties.Set org.kde.KMix.Control mute $genericArg
+ else
+ exit_with_error "No such command '$command'"
+ fi