| 216 | | - '''Purpose:''' Specify the sub-directory where the sources are after the source archive has been unpacked. Most ports should use `'$portVersionedName'`, as that seems to be the most popular way of archiving the sources. |
| 217 | | - '''Required:''' No |
| 218 | | - '''Default:''' None |
| 219 | | |
| 220 | | ==== SOURCE_EXPORT_SUBDIR ==== |
| 221 | | - '''Type:''' String |
| 222 | | - '''Purpose:''' Tells !HaikuPorter to only export the given sub-directory into the source package. This can be useful if a port pulls in a large source archive but only uses a subdirectory of that itself. An example are the current build recipes for `binutils` and `gcc`. |
| | 216 | - '''Purpose:''' Specify the subdirectory where the sources are after the source archive has been unpacked. Most ports should use `'$portVersionedName'`, as that seems to be the most popular way of archiving the sources. If a port pulls in a large source archive but only uses a subdirectory of that itself, the relative path to that subdirectory can be specified here (e.g. for gcc 2 `'$portVersionedName/legacy/gcc'` is used). Only the content of the given subdirectory ends up in the source package for the port. When !HaikuPorter invokes any of the shell functions provided by the recipe, it will set the current working directory to the source directory. |