[arch-commits] Commit in arandr/trunk (PKGBUILD xrandr-version.patch)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon Feb 25 10:46:11 UTC 2013


    Date: Monday, February 25, 2013 @ 11:46:10
  Author: spupykin
Revision: 84849

upgpkg: arandr 0.1.6-3

upd

Added:
  arandr/trunk/xrandr-version.patch
Modified:
  arandr/trunk/PKGBUILD

----------------------+
 PKGBUILD             |    9 ++++++---
 xrandr-version.patch |   12 ++++++++++++
 2 files changed, 18 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-02-25 10:40:35 UTC (rev 84848)
+++ PKGBUILD	2013-02-25 10:46:10 UTC (rev 84849)
@@ -4,7 +4,7 @@
 
 pkgname=arandr
 pkgver=0.1.6
-pkgrel=2
+pkgrel=3
 pkgdesc="Provide a simple visual front end for XRandR 1.2."
 arch=('any')
 url="http://christian.amsuess.com/tools/arandr/"
@@ -13,12 +13,15 @@
 makedepends=('docutils' 'setuptools')
 install=$pkgname.install
 source=(http://christian.amsuess.com/tools/$pkgname/files/$pkgname-$pkgver.tar.gz
-	xrandr-format.patch)
+	xrandr-format.patch
+	xrandr-version.patch)
 md5sums=('38a31e71934c6d11cdf2425c7405f07e'
-         '67d22f82851253e594b83b63c83faef5')
+         '67d22f82851253e594b83b63c83faef5'
+         'cc009b37fb28797d5841f89f6b4bc83b')
 
 package() {
   cd $srcdir/$pkgname-$pkgver
   patch -p1 <$srcdir/xrandr-format.patch
+  patch -p1 <$srcdir/xrandr-version.patch
   python2 setup.py install --prefix=/usr --root=$pkgdir
 }

Added: xrandr-version.patch
===================================================================
--- xrandr-version.patch	                        (rev 0)
+++ xrandr-version.patch	2013-02-25 10:46:10 UTC (rev 84849)
@@ -0,0 +1,12 @@
+diff -wbBur arandr-0.1.6/screenlayout/xrandr.py arandr-0.1.6.my/screenlayout/xrandr.py
+--- arandr-0.1.6/screenlayout/xrandr.py	2012-06-02 17:55:36.000000000 +0400
++++ arandr-0.1.6.my/screenlayout/xrandr.py	2013-02-25 14:44:07.330765106 +0400
+@@ -38,7 +38,7 @@
+             self.environ['DISPLAY'] = display
+ 
+         version_output = self._output("--version")
+-        if not ("1.2" in version_output or "1.3" in version_output) and not force_version:
++        if not ("1.2" in version_output or "1.3" in version_output or "1.4" in version_output) and not force_version:
+             raise Exception("XRandR 1.2/1.3 required.")
+ 
+     def _get_outputs(self):




More information about the arch-commits mailing list