[arch-commits] Commit in sugar-runner/repos (3 files)

Balló György bgyorgy at archlinux.org
Mon Mar 9 19:30:01 UTC 2020


    Date: Monday, March 9, 2020 @ 19:30:00
  Author: bgyorgy
Revision: 593296

archrelease: copy trunk to community-testing-x86_64

Added:
  sugar-runner/repos/community-testing-x86_64/
  sugar-runner/repos/community-testing-x86_64/0001-Python-3-port.patch
    (from rev 593295, sugar-runner/trunk/0001-Python-3-port.patch)
  sugar-runner/repos/community-testing-x86_64/PKGBUILD
    (from rev 593295, sugar-runner/trunk/PKGBUILD)

--------------------------+
 0001-Python-3-port.patch |   71 +++++++++++++++++++++++++++++++++++++++++++++
 PKGBUILD                 |   31 +++++++++++++++++++
 2 files changed, 102 insertions(+)

Copied: sugar-runner/repos/community-testing-x86_64/0001-Python-3-port.patch (from rev 593295, sugar-runner/trunk/0001-Python-3-port.patch)
===================================================================
--- community-testing-x86_64/0001-Python-3-port.patch	                        (rev 0)
+++ community-testing-x86_64/0001-Python-3-port.patch	2020-03-09 19:30:00 UTC (rev 593296)
@@ -0,0 +1,71 @@
+From aa22afcc5e26f81706a52141cbb064ebc1d2f2f7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor at gmail.com>
+Date: Mon, 9 Mar 2020 20:06:25 +0100
+Subject: [PATCH] Python 3 port
+
+---
+ scripts/sugar-runner.in | 4 ++--
+ scripts/tweak-xwrapper  | 2 +-
+ scripts/xephyr-window   | 4 ++--
+ scripts/xinitrc         | 2 +-
+ 4 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/scripts/sugar-runner.in b/scripts/sugar-runner.in
+index f39bdfb..8f3f9e9 100644
+--- a/scripts/sugar-runner.in
++++ b/scripts/sugar-runner.in
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python2 -u
++#!/usr/bin/python -u
+ 
+ # Copyright (C) 2013, Daniel Narvaez
+ #
+@@ -66,7 +66,7 @@ def _allow_to_run_x():
+     except IOError:
+         return
+ 
+-    print "We need to allow everybody to run the X server"
++    print("We need to allow everybody to run the X server")
+     tweak_wrapper = os.path.join(helpers_dir, "tweak-xwrapper")
+     subprocess.check_call(["sudo", "-k", tweak_wrapper])
+ 
+diff --git a/scripts/tweak-xwrapper b/scripts/tweak-xwrapper
+index 05f9c6e..87ceec1 100644
+--- a/scripts/tweak-xwrapper
++++ b/scripts/tweak-xwrapper
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python2 -u
++#!/usr/bin/python -u
+ 
+ # Copyright (C) 2013, Daniel Narvaez
+ #
+diff --git a/scripts/xephyr-window b/scripts/xephyr-window
+index 0c5e98b..c43434a 100644
+--- a/scripts/xephyr-window
++++ b/scripts/xephyr-window
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python2 -u
++#!/usr/bin/python -u
+ 
+ # Copyright (C) 2013, Daniel Narvaez
+ #
+@@ -40,5 +40,5 @@ SugarRunner.window_create(int(width), int(height), fullscreen)
+ while SugarRunner.window_wait():
+     if not fullscreen or SugarRunner.window_is_fullscreen():
+         if not xid_printed:
+-            print SugarRunner.window_get_xid()
++            print(SugarRunner.window_get_xid())
+             xid_printed = True
+diff --git a/scripts/xinitrc b/scripts/xinitrc
+index 904822e..1488880 100644
+--- a/scripts/xinitrc
++++ b/scripts/xinitrc
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python2
++#!/usr/bin/python
+ 
+ # Copyright (C) 2013, Daniel Narvaez
+ #
+-- 
+2.25.1
+

Copied: sugar-runner/repos/community-testing-x86_64/PKGBUILD (from rev 593295, sugar-runner/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-03-09 19:30:00 UTC (rev 593296)
@@ -0,0 +1,31 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=sugar-runner
+pkgver=0.110.0
+pkgrel=3
+pkgdesc="Scripts to run Sugar"
+arch=('x86_64')
+url="https://sugarlabs.org/"
+license=('GPL')
+depends=('sugar' 'xorg-xinit' 'xorg-server-xephyr' 'xorg-xrandr')
+makedepends=('gobject-introspection')
+source=(https://download.sugarlabs.org/sources/sucrose/glucose/$pkgname/$pkgname-$pkgver.tar.xz
+        0001-Python-3-port.patch)
+sha256sums=('383db309d4444f4758892b57614ace47d7cc395fdf01d1894d3da94354ff6870'
+            '960e7e2606ffcb09c3ae309570768438920613227d3ecaf903b8c8e0e4ae7fa0')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../0001-Python-3-port.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --libexecdir=/usr/lib
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list