VERSION=0.5.3a export DEBFULLNAME="Ben Croston" export DEBEMAIL="ben@croston.org"
mkdir ~/temp cd ~/temp
hg clone https://code.google.com/p/raspberry-gpio-python/ cd raspberry-gpio-python
python setup.py sdist
cd ~/temp cp raspberry-gpio-python/dist/*.gz . tar xvfz RPi.GPIO-$VERSION.tar.gz mv RPi.GPIO-$VERSION rpi.gpio-$VERSION cd rpi.gpio-$VERSION dh_make -s -f ../RPi.GPIO-$VERSION.tar.gz
rm -rf debian cp -a ~/temp/raspberry-gpio-python/debian .
debuild -us -uc debuild clean