Recompile cwiid for Ubuntu.

Tech Notes

There are a couple of patches outstanding that I'd like to include in the python-cwiid package. The first is support for the low speed flag for the wii motionplus gyro. This flag lets you know if the motionplus is using the slow or fast scale for its values. Set up our build environment and get the necessary packages. You'll also need your gpg key ID if you're going to sign the package. $ sudo aptitude install bison flex libbluetooth-dev libgtk2.0-dev python-dev libtool automake1.10 autoconf quilt patchutils python-all-dev cdbs $ mkdir cwiid $ cd cwiid Get the source, unpack and patch. $ apt-get source python-cwiid $ tar zxf cwiid_0.6.00+svn201.orig.tar.gz $ gunzip cwiid_0.6.00+svn201-2.diff.gz $ mv cwiid_0.6.00+svn201-2.diff cwiid-0.6.00+svn201/ $ cd cwiid-0.6.00+svn201/ $ patch < cwiid_0.6.00+svn201-2.diff Get the patch we want to apply (from & $ cd libcwiid/ $ wget $ patch < 0001-added-low_speed-data-from-motionplus.patch Configure $ cd .. $ ./configure Build the package. The deb files are placed in the directory above. $ dpkg-buildpackage -rfakeroot -b -k474f6948 $ ls -l ../*.deb Install the packages $ sudo dpkg -i ../*.deb