I wrote a simple bash script to run the two ArgyllCMS programs needed to produce a camera icc file from a target shot of a ColorChecker:
#!/bin/bash
scanin -dipn -v -G1.0 -p $1.tif /usr/share/color/argyll/ref/ColorChecker.cht /usr/share/color/argyll/ref/ColorChecker.cie
colprof -v -am -u -C"No copyright, use freely." -O$2.icc -D$2 $1
Use it something like this:
$ ./cam.sh <infilename_withoutextension> <outfilename_without_extension>