For more information, please refer Synology package developer guide and Synology dev center
git clone https://github.com/SynologyOpenSource/pkgscripts-ng
cd pkgscripts-ng
Assume you are going to develop package compatible with DSM7.0
git checkout DSM7.0
Find your platform name by listing all available platforms supported by DSM7.0
./EnvDeploy -l
Assume your platform is geminilake, and target DSM version is DSM 7.0. Deploy your development environment.
./EnvDeploy -v 7.0 -p geminilake
Clone this repo to your build machine
mkdir -p ../source
cd ../source
git clone <path-to-this-repo>
cp -a <path-to-this-repo>/<repo-you-need> ./
cd ../pkgscripts-ng
./PkgCreate.py -v 7.0 -p geminilake -c <repo-you-need>
ls ../result_spk