A .ipk file is just a .tar.gz file that contains a data.tar.gz and control.tar.gz
The data.tar.gz file contains the files to be extracted in their corresponding directories and the control.tar.gz file has to contain a control file with info about the application. Just unpack one by doing the reverse process and have a look inside.
regards
Meanie