summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD38
-rw-r--r--qt5.patch36
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b5e3b3cae98
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Mon Apr 11 14:41:00 UTC 2016
+pkgbase = touchegg-qt5
+ pkgdesc = Multitouch gesture recognizer (built with qt5)
+ pkgver = 1.1.1
+ pkgrel = 1
+ url = https://code.google.com/p/touchegg/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = qt5-x11extras
+ depends = libxtst
+ depends = geis
+ provides = touchegg
+ conflicts = touchegg
+ source = http://touchegg.googlecode.com/files/touchegg-1.1.1.tar.gz
+ source = qt5.patch
+ sha256sums = 95734815c7219d9a71282f3144b3526f2542b4fa270a8e69d644722d024b4038
+ sha256sums = e8561682a4b64fea5a5e923788ae14ec7f8ad5b0ea03d053da27479f8a435de3
+
+pkgname = touchegg-qt5
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3dffb4d3375
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
+
+pkgname=touchegg-qt5
+pkgver=1.1.1
+pkgrel=1
+pkgdesc='Multitouch gesture recognizer (built with qt5)'
+arch=('i686' 'x86_64')
+provides=('touchegg')
+conflicts=('touchegg')
+url='https://code.google.com/p/touchegg/'
+license=(GPL)
+depends=('qt5-x11extras' 'libxtst' 'geis')
+source=("http://${pkgname%-qt5}.googlecode.com/files/${pkgname%-qt5}-${pkgver}.tar.gz"
+ 'qt5.patch')
+sha256sums=('95734815c7219d9a71282f3144b3526f2542b4fa270a8e69d644722d024b4038'
+ 'e8561682a4b64fea5a5e923788ae14ec7f8ad5b0ea03d053da27479f8a435de3')
+
+prepare() {
+ cd "${pkgname%-qt5}-${pkgver}"
+
+ patch -Np1 < "${srcdir}"/qt5.patch
+}
+
+build() {
+ cd "${pkgname%-qt5}-${pkgver}"
+
+ # Cannot build with default compiler/linker flags
+ #unset CXXFLAGS CFLAGS LDFLAGS
+
+ qmake-qt5
+ make
+}
+
+package() {
+ cd "${pkgname%-qt5}-${pkgver}"
+
+ make INSTALL_ROOT="${pkgdir}" install
+}
diff --git a/qt5.patch b/qt5.patch
new file mode 100644
index 00000000000..5fa54b12107
--- /dev/null
+++ b/qt5.patch
@@ -0,0 +1,36 @@
+From e60ff96afe5ffb893803e26c598e7bc11d1e0c33 Mon Sep 17 00:00:00 2001
+From: chrmod <krzysztof.modras@gmail.com>
+Date: Sun, 31 Jan 2016 14:20:41 +0100
+Subject: [PATCH] Updating dependencies for QT 5.1 to compile on Ubuntu 15.10
+
+---
+ src/touchegg/util/Include.h | 3 ++-
+ touchegg.pro | 2 +-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/src/touchegg/util/Include.h b/src/touchegg/util/Include.h
+index 4fb27d5..c0de1d5 100644
+--- a/src/touchegg/util/Include.h
++++ b/src/touchegg/util/Include.h
+@@ -23,7 +23,8 @@
+ // Qt
+ #include <QtCore>
+ #include <QtGui>
+- #include <QtGui/QX11Info>
++ #include <QtWidgets>
++ #include <QX11Info>
+ #include <QtXml>
+
+ // Xlib
+diff --git a/touchegg.pro b/touchegg.pro
+index 696ea1a..4565083 100644
+--- a/touchegg.pro
++++ b/touchegg.pro
+@@ -1,6 +1,6 @@
+ TEMPLATE = app
+ TARGET = touchegg
+-QT += gui core xml
++QT += gui core xml widgets x11extras
+ LIBS += -lgeis -lX11 -lXtst -lXext
+ //DEFINES = QT_NO_DEBUG_OUTPUT
+