[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
slackware:slackbuild_scripts [2012/08/22 11:04 (UTC)] – [Creating SlackBuild scripts] vharishankar | slackware:slackbuild_scripts [2012/08/26 13:20 (UTC)] – [Creating SlackBuild scripts] cmyster | ||
---|---|---|---|
Line 8: | Line 8: | ||
- Uncompress the source archive (usually .tar.gz or .tar.bz2 file) into a "work directory." | - Uncompress the source archive (usually .tar.gz or .tar.bz2 file) into a "work directory." | ||
+ | - Create a '' | ||
- Configure the source, and apply patches if needed. | - Configure the source, and apply patches if needed. | ||
- Compile/ | - Compile/ | ||
Line 15: | Line 16: | ||
While the above steps can be done by hand, the process is tedious, sometimes complex, and involves typing in a lot of commands. Automating the process by a shell script allows the user to share the process with the community at large. It also makes sense to use and modify existing SlackBuild scripts for upgrading the same program to a newer version. | While the above steps can be done by hand, the process is tedious, sometimes complex, and involves typing in a lot of commands. Automating the process by a shell script allows the user to share the process with the community at large. It also makes sense to use and modify existing SlackBuild scripts for upgrading the same program to a newer version. | ||
- | |||
===== Creating SlackBuild scripts ===== | ===== Creating SlackBuild scripts ===== | ||
- | A good hands-on tutorial on creating a SlackBuild script can be found [[http:// | + | A good hands-on tutorial on creating a SlackBuild script can be found [[http:// |
However, software may be written in different programming languages, use different build systems, or may even simply be written in an interpreted programming language with no obvious way to " | However, software may be written in different programming languages, use different build systems, or may even simply be written in an interpreted programming language with no obvious way to " | ||
Line 25: | Line 25: | ||
<note tip>For new script writers, it is a good idea to perform the above steps manually to create the package from source, before actually writing a SlackBuild script. This reduces the chances of bugs and unexpected behaviour in the script.</ | <note tip>For new script writers, it is a good idea to perform the above steps manually to create the package from source, before actually writing a SlackBuild script. This reduces the chances of bugs and unexpected behaviour in the script.</ | ||
- | Submitting SlackBuild scripts to a public repository such as http:// | + | Submitting SlackBuild scripts to a public repository such as http:// |
===== External Links ===== | ===== External Links ===== | ||