This assumes the upstream source is not already set up for packaging.
-
Download the upstream source tarball. (upstream source = the one from the software’s original developers)
-
Rename to
<source_package>_<upstream_version>.orig.tar.gz(example:simgrid_3.6.orig.tar.gz) -
Untar the source tarball.