--- gok-2.26.0.orig/debian/control.in
+++ gok-2.26.0/debian/control.in
@@ -0,0 +1,70 @@
+Source: gok
+Section: gnome
+Priority: optional
+Maintainer: Ubuntu Accessibility Developers <ubuntu-accessibility-devel@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
+Uploaders: @GNOME_TEAM@
+Build-Depends: debhelper (>= 5),
+               intltool (>= 0.27.3),
+               scrollkeeper,
+               libxtst-dev,
+               libxi-dev,
+               libgnomeui-dev (>= 2.6.1.1-4),
+               libatspi-dev (>= 1.6.0-3),
+               libbonobo2-dev (>= 2.6.0),
+               libatk1.0-dev (>= 1.8.0),
+               libgtk2.0-dev (>= 2.4.0),
+               libgnome-speech-dev,
+               libwnck-dev (>= 2.13.5),
+               libgconf2-dev (>= 1.2.1),
+               pkg-config,
+               liborbit2-dev,
+               libesd0-dev,
+               gnome-pkg-tools,
+               cdbs (>= 0.4.41),
+               libxt-dev,
+               libglib2.0-dev (>= 2.11),
+               libxext-dev,
+               libusb-dev,
+               libglade2-dev,
+               gtk-doc-tools (>= 1.0),
+               docbook-xml
+Standards-Version: 3.7.3
+
+Package: gok
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         at-spi
+Suggests: gok-doc
+Description: GNOME Onscreen Keyboard
+ GOK is the GNOME Onscreen Keyboard, a dynamic onscreen keyboard for
+ UNIX and UNIX-like operating systems. It features Direct Selection,
+ Dwell Selection, Automatic Scanning and Inverse Scanning access methods
+ and includes word completion.
+ .
+ GOK includes an alphanumeric keyboard and a keyboard for launching
+ applications. The keyboards are specified in XML enabling existing
+ keyboards to be modified and new keyboards to be created. The access
+ methods are also specified in XML providing the ability to modify
+ existing access methods and create new ones.
+
+Package: gok-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends},
+         lynx | www-browser,
+         doc-base
+Description: documentation files for the GNOME Onscreen Keyboard
+ GOK is the GNOME Onscreen Keyboard, a dynamic onscreen keyboard for
+ UNIX and UNIX-like operating systems. It features Direct Selection,
+ Dwell Selection, Automatic Scanning and Inverse Scanning access methods
+ and includes word completion.
+ .
+ GOK includes an alphanumeric keyboard and a keyboard for launching
+ applications. The keyboards are specified in XML enabling existing
+ keyboards to be modified and new keyboards to be created. The access
+ methods are also specified in XML providing the ability to modify
+ existing access methods and create new ones.
+ .
+ This package contains the documentation files.
--- gok-2.26.0.orig/debian/changelog
+++ gok-2.26.0/debian/changelog
@@ -0,0 +1,463 @@
+gok (2.26.0-0ubuntu1netbook0araneo0sendai1) sendai; urgency=low
+
+  * Delete 04_menu_change.patch as we want gok to appear in Applications menu
+
+ -- Debbie Beliveau <debbie.beliveau@canonical.com>  Tue, 03 Nov 2009 14:38:59 -0500
+
+gok (2.26.0-0ubuntu1) jaunty; urgency=low
+
+  * New upstream release.
+
+ -- Luke Yelavich <themuso@ubuntu.com>  Tue, 17 Mar 2009 09:18:44 +1100
+
+gok (2.25.91-0ubuntu1) jaunty; urgency=low
+
+  * New upstream release
+
+ -- Luke Yelavich <themuso@ubuntu.com>  Tue, 17 Feb 2009 08:07:36 +1100
+
+gok (2.25.90-0ubuntu1) jaunty; urgency=low
+
+  * New upstream release
+  * Updated patches:
+    - 04_menu_change.patch
+    - 10-fix-cish-code.patch
+
+ -- Luke Yelavich <themuso@ubuntu.com>  Tue, 03 Feb 2009 09:30:39 +0100
+
+gok (2.25.3-0ubuntu1) jaunty; urgency=low
+
+  * New upstream release.
+
+ -- Luke Yelavich <themuso@ubuntu.com>  Tue, 20 Jan 2009 08:58:29 +1100
+
+gok (2.25.2-0ubuntu1) jaunty; urgency=low
+
+  * New upstream release.
+
+ -- Luke Yelavich <themuso@ubuntu.com>  Tue, 02 Dec 2008 09:01:56 +1100
+
+gok (2.25.1-0ubuntu1) jaunty; urgency=low
+
+  * New upstream release (LP: #295363)
+    - HIGify Access Methods Tab (bug #112911) and mark a description
+      for translation
+    - Fix restart logic so that common arguments passed in
+      are retained when gok restarts itself on crash.  Also improve the
+      logic used to ensure GOK works when the user has a non-writable
+      $HOME directory.
+  * debian/gok-doc.doc-base.gok:
+    - Section is only Accessibility and no Applications/Accessibility
+  * debian/copyright:
+    - Adjust copyright notice
+    - Add license header
+  * debian/watch:
+    - Update to follow 2.25.x releases
+
+ -- Pedro Fragoso <ember@ubuntu.com>  Fri, 07 Nov 2008 20:48:51 +0000
+
+gok (2.24.0-0ubuntu1) intrepid; urgency=low
+
+  * New upstream release.
+
+ -- Luke Yelavich <themuso@ubuntu.com>  Tue, 23 Sep 2008 20:21:04 +1000
+
+gok (2.23.91-0ubuntu1) intrepid; urgency=low
+
+  * New upstream release (LP: #262860)
+   - Now aligning with GNOME versioning!
+   - Stability based bug fixes, and updated translations.
+   
+ -- Pedro Fragoso <ember@ubuntu.com>  Sat, 30 Aug 2008 02:29:37 +0100
+
+gok (1.4.0-0ubuntu3) intrepid; urgency=low
+
+  * debian/control: Actually make sure gtk-doc-tools and docbook-xml
+    are part of the Build-Depends list. One , makes a world of
+    difference.
+
+ -- Luke Yelavich <themuso@ubuntu.com>  Wed, 16 Jul 2008 10:56:51 +0100
+
+gok (1.4.0-0ubuntu2) intrepid; urgency=low
+
+  * Bump gtk-doc-tools build dependency to require at least 1.0.
+  * Move gtk-doc-tools and docbook-xml from Build-Depends-Indep as
+    the package FTBFS on all except i386.
+
+ -- Luke Yelavich <themuso@ubuntu.com>  Wed, 16 Jul 2008 10:18:35 +0100
+
+gok (1.4.0-0ubuntu1) intrepid; urgency=low
+
+  * New upstream release.
+
+ -- Luke Yelavich <themuso@ubuntu.com>  Tue, 15 Jul 2008 10:17:46 +0100
+
+gok (1.3.7-1ubuntu1) intrepid; urgency=low
+
+  * Sync with Debian (LP: #241329)
+  * debian/control.in:
+    - Remove all gail reference as gail is now on gtk2
+    - Bump libgtk2.0 to 2.13
+  * debian/patches/04_menu_change.patch:
+    - Hide Desktop menu
+  * debian/control.in:
+    - set Maintainer: Ubuntu Accessibility Developers
+      <ubuntu-accessibility-devel@lists.ubuntu.com>
+
+ -- Pedro Fragoso <emberez@gmail.com>  Thu, 19 Jun 2008 15:17:48 +0100
+
+gok (1.3.7-1) unstable; urgency=medium
+
+  [ Mario Lang ]
+  * debian/control.in: Remove myself from Uploaders, gnome-pkg-tools
+    takes care of this now.
+
+  [ Deng Xiyue ]
+  * New upstream version.
+    + Content no longer changes when built twice or more times in a
+      row. (Closes: #441705)
+  * debian/control{,in}
+    + Bump standard version to 3.7.3.
+    + Bump libwnck-dev build-dep to >= 2.13.5 accordingly.
+    + Add libglade2-dev build-dep accordingly.
+    + Add doc-base in Depends of gok-doc.
+    + Wrap Depends fields.
+    + Capitalize some words in description.
+  * debian/gok.menu
+    + Fix section to Application/Accessability.
+  * debian/gok-doc.doc-base.gok
+    + Add some content to original template, and fix section.
+  * debian/patches
+    + Add 10-fix-cish-code.patch from Aurelien Jarno <aurel32@debian.org>.
+      (Closes: #460863)
+  * debian/rules
+    + Comment out unnecessary operation as reference.
+
+  [ Loic Minier ]
+  * Cleanups.
+
+ -- Mario Lang <mlang@debian.org>  Wed, 16 Jan 2008 13:08:26 +0800
+
+gok (1.2.5-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Mario Lang <mlang@debian.org>  Wed, 13 Jun 2007 20:44:59 +0200
+
+gok (1.2.3-2) unstable; urgency=low
+
+  * Update Build-Depends from libgnome-speech3-dev to the new
+    libgnome-speech-dev.
+  * Wrap Build-deps and add myself to Uploaders.
+
+ -- Mario Lang <mlang@debian.org>  Fri, 18 May 2007 01:32:29 +0200
+
+gok (1.2.3-1) unstable; urgency=low
+
+  * Fix watch file to track stable releases and use HTTP.
+  * Add a get-orig-source target to retrieve the upstream tarball.
+  * New upstream stable releases; bug fixes and translations.
+    - Build-depend on libxext-dev for Xevie support.
+    - Build-depend on libusb-dev and configure with enable-libusb-input for
+      libusb input support.
+  * Set LDFLAGS directly instead of via DEB_CONFIGURE_SCRIPT_ENV; bump up cdbs
+    build-dep to >= 0.4.41; add -z defs before --as-needed.
+
+ -- Loic Minier <lool@dooz.org>  Tue,  6 Mar 2007 15:28:53 +0100
+
+gok (1.2.0-1) unstable; urgency=low
+
+  * Set Maintainer to the Debian GNOME Maintainers.
+  * New upstream release.
+    - Build-depend on libglib2.0-dev >= 2.11.
+    - Drop patch 010_uninitialized-pointer-free-and-div-by-0, merged upstream.
+    - Drop patch 900_gok-debian-libtool as we use --as-needed already.
+
+ -- Loic Minier <lool@dooz.org>  Sun,  1 Oct 2006 13:26:17 +0200
+
+gok (1.0.10-2) unstable; urgency=low
+
+  * Let gok depend on at-spi. (Closes: #339994, #367471, #369864)
+    [debian/control, debian/control.in]
+  * Drop the xlibs-static-dev build-dep.
+    [debian/control, debian/control.in]
+  * Add patch by Christian 'Greek0' Aichinger to fix freeing of an
+    uninitialized pointer and a div-by-0. (Closes: #371139)
+    [debian/patches/010_uninitialized-pointer-free-and-div-by-0.patch]
+  * Bump up Standards-Version to 3.7.2.
+    [debian/control, debian/control.in]
+  * Bump up Debhelper compatibility level to 5.
+    [debian/compat, debian/control, debian/control.in]
+  * Don't override DEB_CONFIGURE_EXTRA_FLAGS completely and cleanup rules.
+    [debian/rules]
+  * Move relibtoolizing patch at the end of the patch stack.
+    [debian/patches/001_gok-debian-libtool.patch,
+     debian/patches/900_gok-debian-libtool.patch]
+  * Remove executable bits on /usr/share/gnome/help/gok/C/legal.xml and make
+    lintian happy.
+    [debian/rules]
+  * Let gok-doc depend on ${misc:Depends}.
+    [debian/control, debian/control.in]
+
+ -- Loic Minier <lool@dooz.org>  Thu,  8 Jun 2006 10:13:55 +0200
+
+gok (1.0.10-1) unstable; urgency=low
+
+  * New upstream release.
+  * [debian/patches/002_fixes-from-cvs.patch] Removed, upstream has now
+    reverted the changes that broke building against the stable glib.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Tue, 16 May 2006 07:19:08 +0200
+
+gok (1.0.9-1) unstable; urgency=low
+
+  * New upstream release.
+  * [debian/patches/002_fixes-from-cvs.patch] Added, needed to build against
+    the stable glib.
+  * [debian/rules] Added linker flags for optimisation and trimming of
+    unneeded dependencies.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Sat, 13 May 2006 11:17:17 +0200
+
+gok (1.0.7-1) unstable; urgency=low
+
+  * New upstream release.
+  * [debian/patches/001_gok-debian-libtool.patch] Updated.
+  * [debian/patches/002_fixes-from-cvs.patch] Dropped; integrated into
+    upstream release.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Tue, 14 Mar 2006 21:22:01 +0100
+
+gok (1.0.6-1) unstable; urgency=low
+
+  * New upstream release.
+  * [debian/patches/001_gok-debian-libtool.patch] Updated.
+  * [debian/patches/002_manual_title.patch] Dropped; fixed upstream.
+  * [debian/patches/002_fixes-from-cvs.patch] Added. Selected fixes from
+    upstream CVS, including one needed to be able to build with sid's libwnck.
+  * [debian/watch] Updated.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Fri, 24 Feb 2006 11:10:02 +0100
+
+gok (1.0.5-2) unstable; urgency=low
+
+  * Rebuild with the new libwnck (Closes: #313445).
+  * debian/control.in:
+    - updated the Build-Depends on libwnck.
+
+ -- Sebastien Bacher <seb128@debian.org>  Sun,  3 Jul 2005 21:35:16 +0200
+
+gok (1.0.5-1) unstable; urgency=low
+
+  * New upstream release.
+  * [debian/patches/001_gok-debian-libtool.patch] Updated.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Sat, 14 May 2005 14:44:46 +0200
+
+gok (1.0.4-1) unstable; urgency=medium
+
+  * New upstream release (bugfixes and updated translations).
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Wed, 27 Apr 2005 07:22:29 +0200
+
+gok (1.0.3-1) unstable; urgency=medium
+
+  * New upstream release (bugfixes and updated translations).
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Wed, 23 Mar 2005 20:01:19 +0100
+
+gok (1.0.2-1) unstable; urgency=medium
+
+  * New upstream release.
+  * [debian/patches/000_update_translations.patch] Dropped.
+  * [debian/patches/001_gok-debian-libtool.patch] Updated.
+  * [debian/patches/002_manual_title.patch] Added.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Mon,  7 Mar 2005 19:39:12 +0100
+
+gok (1.0.1-2) unstable; urgency=medium
+
+  * [debian/patches/000_update_translations.patch] Updated translations from
+    CVS HEAD.
+  * [debian/patches/001_gok-debian-libtool.patch] Moved from
+    000_gok-debian-libtool.patch; updated.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Sun,  6 Mar 2005 15:52:34 +0100
+
+gok (1.0.1-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Thu, 24 Feb 2005 20:42:42 +0100
+
+gok (1.0.0-1) unstable; urgency=medium
+
+  * New upstream release.
+  * [debian/patches/000_gok-debian-libtool.patch] Updated.
+  * [debian/gok-doc.docs] New. (Closes: #292709)
+  * [debian/gok-doc.dirs, debian/gok-doc.links, debian/gok-doc.doc-base.gok]
+    Make documentation accessible to devhelp and through doc-base.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Tue, 22 Feb 2005 23:17:00 +0100
+
+gok (0.12.4-1) unstable; urgency=medium
+
+  * New upstream bugfix release.
+  * [debian/patches/000_gok-debian-libtool.patch] Updated.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Tue, 15 Feb 2005 23:01:39 +0100
+
+gok (0.12.1-1) unstable; urgency=medium
+
+  * New upstream bugfix release.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Wed, 19 Jan 2005 19:59:56 +0100
+
+gok (0.12.0-1) unstable; urgency=medium
+
+  * New upstream bugfix release.
+  * [debian/patches/000_gok-debian-libtool.patch] Updated.
+  * debian/watch: updated.
+  * [debian/control.in] Minor edits to description and synopsis.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Sat, 15 Jan 2005 17:12:40 +0100
+
+gok (0.11.17-2) unstable; urgency=low
+
+  * debian/gok.install, debian/gok-doc.install:
+    - list only the file to install (Closes: #285455).
+  * debian/gok-doc.doc-base.gok:
+    - fixed the index and files (Closes: #285641).
+  * debian/rules:
+    - fixed the cdbs includes.
+    - no need to move the documentation files.
+
+ -- Sebastien Bacher <seb128@debian.org>  Wed,  5 Jan 2005 13:55:18 +0100
+
+gok (0.11.17-1) unstable; urgency=medium
+
+  * New upstream bugfix release.
+  * [debian/patches/000_gok-debian-libtool.patch] Updated.
+  * [debian/rules] Clean out scrollkeeper's droppings.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Sun, 12 Dec 2004 16:04:46 +0100
+
+gok (0.11.16-2) unstable; urgency=low
+
+  * Upload to unstable.
+  * [debian/control.in] Bumped libatspi-dev build dependency to first
+    sufficient version in unstable.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Wed, 24 Nov 2004 22:30:54 +0100
+
+gok (0.11.16-1) experimental; urgency=low
+
+  * New upstream release.
+  * [debian/patches/000_gok-debian-libtool.patch] Updated.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Sat,  6 Nov 2004 18:58:22 +0100
+
+gok (0.11.12-1) experimental; urgency=low
+
+  * New upstream release.
+  * [debian/patches/000_gok-debian-libtool.patch] Updated.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Thu, 14 Oct 2004 23:01:54 +0200
+
+gok (0.11.10-1) experimental; urgency=low
+
+  * New upstream bugfix release.
+  * [debian/control.in] Bumped libatspi-dev build dependency (which already
+    required a version that has only been in experimental) to the current
+    version in experimental.
+  * [debian/patches/000_gok-debian-libtool.patch] Updated.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Tue, 12 Oct 2004 20:33:00 +0200
+
+gok (0.11.9-1) experimental; urgency=low
+
+  * New upstream release.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Fri,  1 Oct 2004 18:25:13 +0200
+
+gok (0.11.8-1) experimental; urgency=low
+
+  * New upstream release.
+  * [debian/control.in] Bumped at-spi and atk build dependencies as per
+    configure.in's requirements for cspi and loginhelper.
+  * [debian/patches/000_gok-debian-libtool.patch] Updated.
+  * [debian/gok.menu] Quote all values.
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org>  Sat, 11 Sep 2004 20:08:57 +0200
+
+gok (0.11.3-2) unstable; urgency=low
+
+  * GNOME Team Upload.
+  * debian/control.in:
+    - updated the Build-Depends to build with gnutls11 (Closes: #263689).
+  * debian/gok.postinst:
+    - removed, dh_gconf handles that better.
+
+ -- Sebastien Bacher <seb128@debian.org>  Wed, 23 Jun 2004 12:55:43 +0200
+
+gok (0.11.3-1) unstable; urgency=low
+
+  * Akira TAGOH <tagoh@debian.org>
+  - New upstream release. (closes: Bug#236222)
+  - debian/watch: updated.
+  - debian/patches/000_gok-debian-libtool.patch: updated.
+  * J.H.M. Dassen (Ray) <jdassen@debian.org>
+  - [debian/control.in] Bumped libbonobo2-dev build dependency.
+  - [debian/control.in] Added xlibs-static-dev, libxtst-dev, libxi-dev,
+    libgnome-speech3-dev build dependencies.
+    (Working to fix FTBFS #250448)
+  * Sebastien Bacher <seb128@debian.org>
+  - debian/patches/000_gok-debian-docdtd.patch:
+    + removed since debian has a xml catalog now.
+  - debian/patches/000_gok-debian-intltool.patch:
+    + removed since the version has updated intltool.
+  - debian/control.in:
+    + added Build-Depends on libxt-dev.
+  - debian/rules:
+    + added --enable-gtk-doc.
+
+ -- Sebastien Bacher <seb128@debian.org>  Mon,  7 Jun 2004 17:29:02 +0200
+
+gok (0.9.4-1) unstable; urgency=low
+
+  * New upstream release, which is possible to build against gtk+ 2.2.x.
+  * rebuild against the latest libraries. (closes: Bug#221628)
+  * debian/control:
+    - bumped Standards-Version to 3.6.1.0.
+    - changed a section for gok to gnome.
+    - added Uploaders to maintain as team.
+    - updated Build-Depends.
+  * debian/compat:
+    - use it instead of DH_COMPAT.
+  * debian/patches/:
+    - 000_gok-debian-libtool.patch: updated.
+    - 000_gok-debian-docdtd.patch: applied to use local DTD.
+      (closes: Bug#188568)
+    - 000_gok-debian-intltool.patch: applied to update intltool stuff.
+  * debian/gok.{postinst,postrm}:
+    removed scrollkeeper-update.
+  * debian/rules:
+    - use cdbs.
+
+ -- Akira TAGOH <tagoh@debian.org>  Mon,  5 Apr 2004 13:05:58 +0900
+
+gok (0.6.0-2) unstable; urgency=low
+
+  * debian/rules:
+    - add --enable-gtk-doc=auto to configure option. (closes: Bug#185614)
+
+ -- Akira TAGOH <tagoh@debian.org>  Sat, 22 Mar 2003 04:45:40 +0900
+
+gok (0.6.0-1) unstable; urgency=low
+
+  * Initial Release. (closes: Bug#183283)
+  * debian/patches/000_gok-libtool.patch:
+    applied to fix libtool issue on mipsel.
+
+ -- Akira TAGOH <tagoh@debian.org>  Wed, 12 Mar 2003 05:00:51 +0900
+
--- gok-2.26.0.orig/debian/gok.docs
+++ gok-2.26.0/debian/gok.docs
@@ -0,0 +1,2 @@
+NEWS
+README
--- gok-2.26.0.orig/debian/gok-doc.doc-base.gok
+++ gok-2.26.0/debian/gok-doc.doc-base.gok
@@ -0,0 +1,12 @@
+Document: gok
+Title: The GNOME Onscreen Keyboard Reference Manual
+Author: David Bolter, Bill Haneman
+Abstract: GOK is the GNOME Onscreen Keyboard, a dynamic onscreen
+ keyboard for UNIX and UNIX-like operating systems. It features Direct
+ Selection, Dwell Selection, Automatic Scanning and Inverse Scanning
+ access methods and include word completion.
+Section: Accessibility
+
+Format: HTML
+Index: /usr/share/doc/gok-doc/index.html
+Files: /usr/share/doc/gok-doc/*.html
--- gok-2.26.0.orig/debian/rules
+++ gok-2.26.0/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/gnome.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
+-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
+
+LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
+
+DEB_CONFIGURE_EXTRA_FLAGS += --enable-gtk-doc --enable-libusb-input
+
+binary-post-install/gok::
+	#rm -rf debian/gok/var/scrollkeeper
+	#-rmdir debian/gok/var
+	-chmod a-x debian/gok/usr/share/gnome/help/gok/C/legal.xml
--- gok-2.26.0.orig/debian/gok.menu
+++ gok-2.26.0/debian/gok.menu
@@ -0,0 +1,5 @@
+?package(gok):\
+  needs="X11" \
+  section="Applications/Accessibility" \
+  title="The GNOME Onscreen Keyboard" \
+  command="/usr/bin/gok"
--- gok-2.26.0.orig/debian/watch
+++ gok-2.26.0/debian/watch
@@ -0,0 +1,2 @@
+version=2
+http://ftp.gnome.org/pub/gnome/sources/gok/([\d\.]+)[024568]/gok-([\d\.]+)\.tar\.gz
--- gok-2.26.0.orig/debian/gok-doc.links
+++ gok-2.26.0/debian/gok-doc.links
@@ -0,0 +1 @@
+/usr/share/doc/gok-doc /usr/share/gtk-doc/html/gok
--- gok-2.26.0.orig/debian/control
+++ gok-2.26.0/debian/control
@@ -0,0 +1,70 @@
+Source: gok
+Section: gnome
+Priority: optional
+Maintainer: Ubuntu Accessibility Developers <ubuntu-accessibility-devel@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
+Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
+Build-Depends: debhelper (>= 5),
+               intltool (>= 0.27.3),
+               scrollkeeper,
+               libxtst-dev,
+               libxi-dev,
+               libgnomeui-dev (>= 2.6.1.1-4),
+               libatspi-dev (>= 1.6.0-3),
+               libbonobo2-dev (>= 2.6.0),
+               libatk1.0-dev (>= 1.8.0),
+               libgtk2.0-dev (>= 2.4.0),
+               libgnome-speech-dev,
+               libwnck-dev (>= 2.13.5),
+               libgconf2-dev (>= 1.2.1),
+               pkg-config,
+               liborbit2-dev,
+               libesd0-dev,
+               gnome-pkg-tools,
+               cdbs (>= 0.4.41),
+               libxt-dev,
+               libglib2.0-dev (>= 2.11),
+               libxext-dev,
+               libusb-dev,
+               libglade2-dev,
+               gtk-doc-tools (>= 1.0),
+               docbook-xml
+Standards-Version: 3.7.3
+
+Package: gok
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         at-spi
+Suggests: gok-doc
+Description: GNOME Onscreen Keyboard
+ GOK is the GNOME Onscreen Keyboard, a dynamic onscreen keyboard for
+ UNIX and UNIX-like operating systems. It features Direct Selection,
+ Dwell Selection, Automatic Scanning and Inverse Scanning access methods
+ and includes word completion.
+ .
+ GOK includes an alphanumeric keyboard and a keyboard for launching
+ applications. The keyboards are specified in XML enabling existing
+ keyboards to be modified and new keyboards to be created. The access
+ methods are also specified in XML providing the ability to modify
+ existing access methods and create new ones.
+
+Package: gok-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends},
+         lynx | www-browser,
+         doc-base
+Description: documentation files for the GNOME Onscreen Keyboard
+ GOK is the GNOME Onscreen Keyboard, a dynamic onscreen keyboard for
+ UNIX and UNIX-like operating systems. It features Direct Selection,
+ Dwell Selection, Automatic Scanning and Inverse Scanning access methods
+ and includes word completion.
+ .
+ GOK includes an alphanumeric keyboard and a keyboard for launching
+ applications. The keyboards are specified in XML enabling existing
+ keyboards to be modified and new keyboards to be created. The access
+ methods are also specified in XML providing the ability to modify
+ existing access methods and create new ones.
+ .
+ This package contains the documentation files.
--- gok-2.26.0.orig/debian/gok-doc.docs
+++ gok-2.26.0/debian/gok-doc.docs
@@ -0,0 +1 @@
+docs/reference/html/*
--- gok-2.26.0.orig/debian/gok-doc.dirs
+++ gok-2.26.0/debian/gok-doc.dirs
@@ -0,0 +1,2 @@
+usr/share/doc/gok-doc/
+usr/share/gtk-doc/html/
--- gok-2.26.0.orig/debian/compat
+++ gok-2.26.0/debian/compat
@@ -0,0 +1 @@
+5
--- gok-2.26.0.orig/debian/copyright
+++ gok-2.26.0/debian/copyright
@@ -0,0 +1,34 @@
+This package was debianized by Akira TAGOH <tagoh@debian.org> on
+Tue,  4 Mar 2003 03:34:59 +0900.
+
+It was downloaded from http://www.gok.ca/
+
+Upstream Authors:
+ David Bolter <david.bolter@utoronto.ca>
+ Chris Ridpath <chris.ridpath@utoronto.ca>
+ Simon Bates <simon.bates@utoronto.ca>
+
+Copyright:
+     
+    * Copyright 2002 Sun Microsystems, Inc.,
+    * Copyright 2002 University Of Toronto
+
+License:
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Library General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Library General Public License for more details.
+
+    You should have received a copy of the GNU Library General Public
+    License along with this library; if not, write to the
+    Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+    MA 02110-1301, USA.
+
+     See /usr/share/common-licenses/LGPL-2 on your debian system.
+
--- gok-2.26.0.orig/debian/gok.install
+++ gok-2.26.0/debian/gok.install
@@ -0,0 +1,9 @@
+debian/tmp/etc/gconf
+debian/tmp/usr/share/locale
+debian/tmp/usr/share/gnome
+debian/tmp/usr/share/omf
+debian/tmp/usr/share/gok
+debian/tmp/usr/share/applications
+debian/tmp/usr/share/pixmaps
+debian/tmp/usr/lib
+debian/tmp/usr/bin
--- gok-2.26.0.orig/debian/patches/10-fix-cish-code.patch
+++ gok-2.26.0/debian/patches/10-fix-cish-code.patch
@@ -0,0 +1,19 @@
+--- gok-2.25.90/gok/gok-libusb.c	2009-01-14 09:48:10.000000000 +0100
++++ gok-2.25.90.new/gok/gok-libusb.c	2009-02-03 09:28:03.000000000 +0100
+@@ -261,7 +261,7 @@
+ 					/* check if the device is attached to a kernel driver and attempt to detach if it is
+ 					 * if the OS doesn't support detaching from the kernel driver, just try to claim the interface anyway
+ 					 */
+-					if (LIBUSB_HAS_GET_DRIVER_NP && LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP)
++#if defined(LIBUSB_HAS_GET_DRIVER_NP) && defined(LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP)
+ 					{ 
+ 						gchar *driver_name = g_malloc0(128);
+ 						if (usb_get_driver_np(handle, j, driver_name, 128) >= 0) 
+@@ -283,6 +283,7 @@
+ 						}
+ 						g_free(driver_name);
+ 					}
++#endif
+ 
+ 					if (usb_claim_interface(handle, j) < 0)
+ 					{
