function find_source

find_source is a pretty short set of commands which does just what the name says.

Main purpose

  1. Find out if the source tarball being requested is already on the system.
  2.  If not, and a SOURCE_URL is given the file will be downloaded before proceeding. src2pkg will check for wget, rsync, curl or lynx and use the first one it finds or you can specify which one to use by using the DOWNLOADER='' variable in your src2pkg.conf file.

Notes

The final NAME and VERSION for the package are separated from the name of the source tarball in pre_process. find_source looks for the real tarball in the SOURCES_DIR or CWD or as link or URL
find_source can be skipped if you are building a package which uses no archive. The trackinstall porgram included with src2pkg skips this step as it assumes you are working with already-unpacked sources.