gedit-arduino-tool is script that can be used as a Gedit "External Tool" to compile and upload Arduino sketches. It uses the Arduino.mk template.