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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 16 09:36:54 UTC 2020


    Date: Monday, November 16, 2020 @ 09:36:53
  Author: foutrelis
Revision: 401253

archrelease: copy trunk to staging-x86_64

Added:
  caribou/repos/staging-x86_64/
  caribou/repos/staging-x86_64/PKGBUILD
    (from rev 401252, caribou/trunk/PKGBUILD)
  caribou/repos/staging-x86_64/unicode_to_keyval-symbol-check.patch
    (from rev 401252, caribou/trunk/unicode_to_keyval-symbol-check.patch)

--------------------------------------+
 PKGBUILD                             |   58 +++++++++++++++++++++++++++++++++
 unicode_to_keyval-symbol-check.patch |   13 +++++++
 2 files changed, 71 insertions(+)

Copied: caribou/repos/staging-x86_64/PKGBUILD (from rev 401252, caribou/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-11-16 09:36:53 UTC (rev 401253)
@@ -0,0 +1,58 @@
+# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Contributor: Adam Hani Schakaki <krzd at krzd.net>
+
+pkgname=caribou
+pkgver=0.4.21+66+g14f5428
+pkgrel=2
+pkgdesc="A text entry and UI navigation application (on-screen keyboard)"
+arch=('x86_64')
+url="http://live.gnome.org/Caribou"
+license=(LGPL)
+depends=(at-spi2-atk python-atspi python-gobject gtk3 libxklavier libgee clutter dconf)
+makedepends=(intltool docbook-xsl gtk2 gobject-introspection vala git gnome-common)
+options=(!emptydirs)
+_commit=14f54287535ea3b5914638843710a8cef7b68e68  # master
+source=("git+https://gitlab.gnome.org/GNOME/caribou.git#commit=$_commit"
+        unicode_to_keyval-symbol-check.patch)
+sha256sums=('SKIP'
+            '7b8969c275df30613531728408d75af1af22199b4fe3835d5ef67355f747799e')
+
+pkgver() {
+  cd $pkgname
+  git describe --long | sed -e 's/-/+/g' -e 's/^CARIBOU_//' -e 's/_/./g'
+}
+
+prepare() {
+  cd $pkgname
+
+  # https://gitlab.gnome.org/GNOME/caribou/-/issues/7
+  patch -Np1 -i ../unicode_to_keyval-symbol-check.patch
+
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+
+  ./configure --prefix=/usr --sysconfdir=/etc \
+    --libexecdir=/usr/lib/$pkgname \
+    --disable-static \
+    --disable-schemas-compile
+
+  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make
+}
+
+check() {
+  cd $pkgname
+  make -k check
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:

Copied: caribou/repos/staging-x86_64/unicode_to_keyval-symbol-check.patch (from rev 401252, caribou/trunk/unicode_to_keyval-symbol-check.patch)
===================================================================
--- staging-x86_64/unicode_to_keyval-symbol-check.patch	                        (rev 0)
+++ staging-x86_64/unicode_to_keyval-symbol-check.patch	2020-11-16 09:36:53 UTC (rev 401253)
@@ -0,0 +1,13 @@
+diff --git a/libcaribou/key-model.vala b/libcaribou/key-model.vala
+index 89015bc..e88342e 100644
+--- a/libcaribou/key-model.vala
++++ b/libcaribou/key-model.vala
+@@ -101,7 +101,7 @@ namespace Caribou {
+                     unichar uc;
+                     while (text.get_next_char (ref index, out uc)) {
+                         uint keyval = Gdk.unicode_to_keyval (uc);
+-                        if (keyval != uc | 0x01000000)
++                        if (keyval != (uc | 0x01000000))
+                             _keyvals += keyval;
+                     }
+                 } else {



More information about the arch-commits mailing list