Qpkg-sdk is a project mainly written in SHELL and PHP, it's free.
SDK for building software application packages that run on QNAP NAS.