function make_package

Main purpose

  1. Verify the final package content
  2. Create the final compressed package.

Notes

This function used to simply call  the Slackware makepkg program. Now the code is located internally for more flexibility especially regarding zero-length files. Many faulty or badly-maintained sources install files which have no content which can cause problems with tar and/gzip when the package is compressed. However some packages include necessary initial configuration files which are blank. This function attempts to remove empty documents without removing anything from the PKG_DIR/etc directory.

If this routine removes empty files from your package which are needed you can override this feature with FORCE_ZERO_LENGTH=YES

Finally this function will use the Slackware installpkg or other install command to install the package to your system, but only if you have asked for that. The default is REALLY_INSTALL=NO.