Uploaded a build for raspberry pi to
http://www.assembla.com/spaces/chdkptp/documentsThis was built on the wheezy beta from here
http://www.raspberrypi.org/archives/1435 - may or may not work on other distros.
Here's the steps I used to build it:
installed the following packages
liblua5.1-0-dev
libusb-dev
subversion (not required, used to check out the source but you can download it some other way)
zip (only needed for making the zipped binary snapshot package)
checked out the chdkptp source
$ svn co
https://tools.assembla.com/svn/chdkptp/trunk chdkptp
create chdk/core inside the chdkptp directory, and copy ptp.h and live_view.h from the chdk trunk into it
$ cp config-sample-linux.mk config.mk
edit config.mk, changing
CHDK_SRC_DIR=/path/to/chdk/source
to
CHDK_SRC_DIR=chdk
$ make
$ cp chdkptp-sample.sh chdkptp.sh,
edit chdkptp.sh, change CHDKPTP_DIR to /home/pi/chdkptp
The resulting build doesn't have gui, and for some reason needs to be run as root to access the cam. Seems to work though.