Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 gromit-mpx (1.2-2) unstable; urgency=medium
 .
   * Track upstream development
   * Remove debian default hotkey patch (PAUSE) reverting to upstream (F9)
   * Remove now-unnecessary dh build system option
Author: Barak A. Pearlmutter <bap@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2017-01-19

--- gromit-mpx-1.2.orig/.travis.yml
+++ gromit-mpx-1.2/.travis.yml
@@ -4,10 +4,10 @@ sudo: required
 
 # install build dependencies
 before_install:
-  - sudo apt-get install automake libgtk-3-dev libappindicator3-dev libxi-dev
+  - sudo apt-get install cmake libgtk-3-dev libappindicator3-dev libxi-dev
 
-# before build script, run autoreconf
-before_script: autoreconf -fiv
-
-# Default is "./configure && make && make test", but no tests yet
-script: "./configure && make"
\ No newline at end of file
+# Build steps
+script:
+  - mkdir build
+  - cd build
+  - cmake .. && make
--- gromit-mpx-1.2.orig/CMakeLists.txt
+++ gromit-mpx-1.2/CMakeLists.txt
@@ -1,8 +1,8 @@
 cmake_minimum_required(VERSION 3.0)
-project(Gromit_MPX LANGUAGES C)
+project(gromit-mpx LANGUAGES C)
 
 set(target_name gromit-mpx)
-set(version 1.2)
+set(version 1.3)
 
 set(CMAKE_C_FLAGS  " ${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter")
 
@@ -51,13 +51,15 @@ target_link_libraries(${target_name}
     -lm
 )
 
-install(TARGETS ${target_name} RUNTIME DESTINATION bin)
-install(FILES data/gromit-mpx.desktop DESTINATION share/applications)
-install(FILES data/gromit-mpx.cfg DESTINATION etc/gromit-mpx)
-install(FILES README.md AUTHORS ChangeLog NEWS DESTINATION share/doc/gromit-mpx)
-install(FILES gromit-mpx.1 DESTINATION share/man/man1)
-install(FILES data/gromit-mpx.png data/gromit-mpx.xpm DESTINATION share/pixmaps)
-install(FILES data/gromit-mpx.svg DESTINATION share/icons/hicolor/scalable/apps)
+include(GNUInstallDirs)
+
+install(TARGETS ${target_name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+install(FILES data/gromit-mpx.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
+install(FILES data/gromit-mpx.cfg DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/gromit-mpx)
+install(FILES README.md AUTHORS ChangeLog NEWS DESTINATION ${CMAKE_INSTALL_DOCDIR})
+install(FILES gromit-mpx.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
+install(FILES data/gromit-mpx.png data/gromit-mpx.xpm DESTINATION ${CMAKE_INSTALL_DATADIR}/pixmaps)
+install(FILES data/gromit-mpx.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps)
 
 configure_file(
     "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
--- gromit-mpx-1.2.orig/README.md
+++ gromit-mpx-1.2/README.md
@@ -95,13 +95,15 @@ will undo the last two strokes. The maxi
 
 ### Building it
 
-Gromit-MPX is small and lightweight. It needs GTK+3 to build.
-Simply type `./configure && make && make install`.
+Gromit-MPX uses CMake as its build system. Thus, it's the usual:
 
-If you checked out from git instead of using the tarball, an
-`autoreconf --install` is needed to setup the build system.
+    mkdir build
+    cd build
+    cmake ..
+    make
+
+from the root of the source tree.
 
-You might also need to install `automake` and `gtk3-devel`.
 
 ### Configuration:
 
--- gromit-mpx-1.2.orig/gromit-mpx.1
+++ gromit-mpx-1.2/gromit-mpx.1
@@ -103,6 +103,24 @@ will undo the last drawing stroke.
 .TP
 .B \-y, \-\-redo
 will redo the last undone drawing stroke.
+.SH ENVIRONMENT
+.TP
+.B GDK_BACKEND
+Set to force use of a particular backend, valid values are
+.I x11
+or
+.IR wayland .
+.TP
+.B XDG_CONFIG_HOME
+Directory to search for user's custom configuration file, defaults to
+.BI ~ /.config/ .
+.SH FILES
+.TP
+.I gromit\-mpx.cfg
+Configuration file which defines pens and maps mouse buttons and
+modifiers to them. Searched for in user's custom configuration file
+directory and, if not found there, in
+.IR /etc/gromit\-mpx/ .
 .SH BUGS
 When there is no compositing manager such as Compiz, xcompmgr or Mutter
 running, Gromit-MPX falls back to a legacy drawing mode. This may
