[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.
Розбіжності
Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
Наступна ревізія | Попередня ревізіяОстання ревізіяПо сторонах наступні версії | ||
uk:slackware:slackbuild_scripts [2014/04/26 07:49 (UTC)] – створено streamthreader | uk:slackware:slackbuild_scripts [2014/05/12 09:38 (UTC)] – [Sources] streamthreader | ||
---|---|---|---|
Рядок 1: | Рядок 1: | ||
<note important> | <note important> | ||
- | ====== SlackBuild | + | ====== |
- | A SlackBuild | + | Скрипти |
- | ===== Overview ===== | ||
- | The basic process of creating a Slackware package from source can be summarized as follows, while details may vary from one build system to another. | + | ===== Огляд ===== |
- | - 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. | + | |
- | - Compile/ | + | |
- | - Install the program to a temporary directory. This step may be a little bit tricky, depending on how the '' | + | |
- | - Copy the program documentation and other necessary files (including post-installation scripts) to the appropriate subdirectories in the temporary installation directory. These locations should adhere to default directory structure used by Slackware | + | |
- | - Use the '' | + | |
- | 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. | + | - Розпакування архіву з сирцевим кодом (за звичай це файли з розширенням .tar.gz or .tar.bz2) в робочу директорію. |
- | ===== Creating SlackBuild scripts ===== | + | - Створення файлу '' |
+ | - Конфігурація сирцевого коду та за необхідністю застосування патчів до коду. | ||
+ | - Компіляція/ | ||
+ | - Встановлення програми в тимчасову директорію. Цей крок може бути складніший, це залежить від системи збірки та як працює '' | ||
+ | - Копіювання документації та інших важливих файлів (включаючи скрипти після встановлення) в піддиректорію тимчасового каталогу встановлення. Розміщення документації за замовченням знаходиться згідно зі стандартом пакетного менеджера Slackware а саме в ''/ | ||
+ | - Використовується утиліта '' | ||
- | A good hands-on tutorial on creating a SlackBuild script can be found [[http:// | + | Поки усі переобчисленні кроки робляться в ручну включаючи написання усіх команд. Автоматизувати цей процес допомагають скрипти, яки поширюють користувачі між спільнотою. Так само ці SlackBuild скрипти можна відредагувати та використовувати задля оновлення вже встановленого програмного забезпечення. |
- | 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 " | ||
- | It is recommended that anybody who wishes to write a SlackBuild script, study and understand the build system of a software project before attempting to write a SlackBuild script for it. A degree of proficiency in writing shell scripts is also a definite benefit, as it is the practice to use Bourne shell compatible scripts for SlackBuilds. Ideally, simple C projects which use the standard GNU Make system is a good way to start practicing writing SlackBuild scripts. | + | ===== Створення скриптів SlakcBuild ===== |
- | <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://www.slackbuilds.org may additionally require adherence to certain conventions and coding standards. For instance, it would be necessary for the script to determine the target architecture at runtime rather than hard-coding it into the script. These standards attempt to make SlackBuild scripts as portable as possible. | + | Гарний урок по створенню скриптів SlakcBuild можна знайти [[http://www.slackwiki.com/ |
+ | Також, програмне забезпечення може бути написане на різних мовах програмування, | ||
- | ===== Automated | + | Рекомендовано усім хто пише скрипт |
+ | В процесі написання SlackBuild скриптів Ви будите збільшувати свій ступінь володіння написання Shell скриптів, | ||
- | Some tools exist that can assist you with creating a SlackBuild | + | Завантаження |
- | * [[http:// | + | ===== Автоматичні генератори |
- | * [[http:// | + | |
- | ===== External Links ===== | + | Деякі інструменти які можуть допомогти в створенні SlackBuild скриптів. Ось деякі приклади. |
- | * SlackBuilds Repository - http://www.slackbuilds.org/ | + | * [[http://alien.slackbook.org/AST/ | Alien' |
- | * SlackBuild templates - http://slackbuilds.org/templates/ | + | * [[http://www.dawoodfall.net/slackbuilds/noversion/ |
+ | ===== Зовнішні посилання ===== | ||
- | ===== Sources | + | * SlackBuilds репозиторій - http:// |
- | * Originally written by | + | * SlackBuild шаблони - http:// |
+ | |||
+ | |||
+ | ===== Джерела | ||
+ | * Автор оригіналу | ||
<!-- Please do not change anything below this line--> | <!-- Please do not change anything below this line--> | ||
{{tag> | {{tag> |