pkg_parse_name package abs_name basename compression name [ version arch release build extension ]
pkg_parse_name parses package's name to get the extension and other info. Remaining arguments are treated as variables to store the corresponding information:
abs_name the absolute path to the package
basename
the name of the package without the directory and extension but still with the version, build, architecture and release
compression the compression utility for the package
name the basename of the package stripped of version , build, architecture and release.
version the version number for the package
arch the architecture for the package
release the Zenwalk release for the package
build the build numer
Return status is zero even if no version, architecture, build, release are found. The value of these variables is unchanged if no value is found.As such, if they were not set or null before a call to this function they still will be after a call.