The SPK installation process is described on Merty’s page. This page focuses on my packages specificities.

WORK IN PROGRESS

The packages are architecture independent, they contains the binaries for the seven known Synology architectures. To limit the size of the resulting SPK, the core of the package is compressed using xz, version 5.0.1. As the SPK format uses a gzip compressed tar file (package.tgz), the xz compressed archive is contained inside it, along with the necessary tool to decompress it (xzdec). The content of the package.tgz file is:

package.txz XZ compressed package
sbin/xzdec-<arch> XZ decompressor, one for each supported architecture

In the post installation phase (see postinst in Merty’s page), the content of the file package.txz is extracted directly to /usr/local/<packageName>/. Indeed, only the content needed for the current platform is extracted. There is no use for example to extract the ARM or PowerPC binaries and libraries on a NAS running an x86 processor.