[arch-commits] Commit in gnome-media/trunk (2 files)

Ionut Biru ibiru at archlinux.org
Mon Jan 3 11:03:30 EST 2011


    Date: Monday, January 3, 2011 @ 11:03:30
  Author: ibiru
Revision: 104482

upgpkg: gnome-media 2.32.0-3
fix left scrolling in volume control pulse audio backend

Added:
  gnome-media/trunk/gnome_volume_control_fix_channel_bars.patch
Modified:
  gnome-media/trunk/PKGBUILD

---------------------------------------------+
 PKGBUILD                                    |   23 +++++++++++++----------
 gnome_volume_control_fix_channel_bars.patch |   12 ++++++++++++
 2 files changed, 25 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-01-03 16:00:43 UTC (rev 104481)
+++ PKGBUILD	2011-01-03 16:03:30 UTC (rev 104482)
@@ -4,7 +4,7 @@
 pkgbase=gnome-media
 pkgname=(gnome-media gnome-media-pulse)
 pkgver=2.32.0
-pkgrel=2
+pkgrel=3
 pkgdesc="GNOME Media Tools"
 arch=('i686' 'x86_64')
 license=('GPL')
@@ -14,21 +14,24 @@
 groups=('gnome')
 options=('!libtool' '!emptydirs')
 install=gnome-media.install
-source=(http://ftp.gnome.org/pub/gnome/sources/${pkgbase}/2.32/${pkgbase}-${pkgver}.tar.bz2)
-sha256sums=('2b0ad4decd75406398f46e82a170e53bcbc6e1bdc3363f03a07b00f59c2fe5e6')
+source=(http://ftp.gnome.org/pub/gnome/sources/${pkgbase}/2.32/${pkgbase}-${pkgver}.tar.bz2
+        gnome_volume_control_fix_channel_bars.patch)
+sha256sums=('2b0ad4decd75406398f46e82a170e53bcbc6e1bdc3363f03a07b00f59c2fe5e6'
+            '51e59fb42114d70118f4b750a06a33e0e40b0a03ed6509dc1348c641cc274d74' )
 
 build() {
-  cd "$srcdir"
-  cp -a "$pkgbase-$pkgver"{,-pulse}
+  cd "${srcdir}"
+  patch -Np0 -i "${srcdir}/gnome_volume_control_fix_channel_bars.patch"
+  cp -a "${pkgbase}-${pkgver}"{,-pulse}
 
-  cd "$pkgbase-$pkgver"
+  cd "${pkgbase}-${pkgver}"
   ./configure --prefix=/usr --sysconfdir=/etc \
       --libexecdir=/usr/lib/gnome-media \
       --localstatedir=/var --disable-static \
       --disable-scrollkeeper --disable-pulseaudio
   make
 
-  cd "$srcdir/$pkgbase-$pkgver-pulse"
+  cd "${srcdir}/${pkgbase}-${pkgver}-pulse"
   ./configure --prefix=/usr --sysconfdir=/etc \
       --libexecdir=/usr/lib/gnome-media \
       --localstatedir=/var --disable-static \
@@ -41,7 +44,7 @@
   install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgbase}.schemas" --domain gnome-media-2.0 ${pkgdir}/etc/gconf/schemas/*.schemas
   rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
-  
+
   # remove it from Xfce menu that ships its own thingy
   echo "NotShowIn=XFCE" >> ${pkgdir}/usr/share/applications/gnome-volume-control.desktop
 }
@@ -56,7 +59,7 @@
   depends+=(libpulse)
   groups=(pulseaudio-gnome)
   conflicts=(gnome-media)
-  provides=("gnome-media=$pkgver-$pkgrel")
+  provides=("gnome-media=${pkgver}-${pkgrel}")
 
   cd "${srcdir}/${pkgbase}-${pkgver}-pulse"
   _commonpackage
@@ -64,5 +67,5 @@
   # Install missing icon
   install -Dm644 \
     gst-mixer/icons/16x16/status/audio-input-microphone-muted.png \
-    "$pkgdir/usr/share/icons/hicolor/16x16/status/audio-input-microphone-muted.png"
+    "${pkgdir}/usr/share/icons/hicolor/16x16/status/audio-input-microphone-muted.png"
 }

Added: gnome_volume_control_fix_channel_bars.patch
===================================================================
--- gnome_volume_control_fix_channel_bars.patch	                        (rev 0)
+++ gnome_volume_control_fix_channel_bars.patch	2011-01-03 16:03:30 UTC (rev 104482)
@@ -0,0 +1,12 @@
+diff -aur gnome-media-2.32.0/gnome-volume-control/src/gvc-channel-bar.c gnome-media-2.32.0.new/gnome-volume-control/src/gvc-channel-bar.c
+--- gnome-media-2.32.0/gnome-volume-control/src/gvc-channel-bar.c	2010-09-28 15:46:15.000000000 +0100
++++ gnome-media-2.32.0.new/gnome-volume-control/src/gvc-channel-bar.c	2010-12-31 15:14:23.964994328 +0000
+@@ -449,7 +449,7 @@
+                 /* Switch side scroll to vertical */
+                 if (direction == GDK_SCROLL_RIGHT)
+                         direction = GDK_SCROLL_UP;
+-                else if (GDK_SCROLL_LEFT)
++                else if (direction == GDK_SCROLL_LEFT)
+                         direction = GDK_SCROLL_DOWN;
+         }
+ 



More information about the arch-commits mailing list