This follows the pattern of opkg. I took the luci-app-opkg package and tried to follow its behaviour.