[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:54 (UTC)] – [SlackBuild scripts] streamthreader | uk:slackware:slackbuild_scripts [2014/05/12 09:41 (UTC)] (поточний) – streamthreader | ||
---|---|---|---|
Рядок 1: | Рядок 1: | ||
- | <note important> | ||
- | |||
====== Скрипти SlackBuild ====== | ====== Скрипти SlackBuild ====== | ||
- | Скрипти SlackBuild це файлі командного інтерпретатора (за звичай вони сумісні з Bourne shell) які автоматизують процес конфігурації, | + | Скрипти SlackBuild це файли командного інтерпретатора (за звичай вони сумісні з Bourne shell) які автоматизують процес конфігурації, |
+ | ===== Огляд ===== | ||
- | ===== Overview ===== | + | Процес створення пакету для Slackware з сирцевого коду можна поділити на слідуючи частини, |
- | 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. | + | - Розпакування архіву з сирцевим кодом (за звичай це файли з розширенням .tar.gz or .tar.bz2) в робочу директорію. |
+ | - Створення файлу '' | ||
+ | - Конфігурація сирцевого коду та за необхідністю застосування патчів до коду. | ||
+ | - Компіляція/ | ||
+ | - Встановлення програми в тимчасову директорію. Цей крок може бути складніший, | ||
+ | - Копіювання документації та інших важливих файлів (включаючи скрипти після встановлення) в піддиректорію тимчасового каталогу встановлення. Розміщення документації за замовченням знаходиться згідно зі стандартом пакетного менеджера Slackware а саме в ''/ | ||
+ | - Використовується утиліта '' | ||
- | - Uncompress the source archive (usually | + | Поки усі переобчисленні кроки робляться в ручну включаючи написання усіх команд. Автоматизувати цей процес допомагають скрипти, яки поширюють користувачі між спільнотою. Так само ці SlackBuild скрипти можна відредагувати та використовувати задля оновлення вже встановленого програмного забезпечення. |
- | - 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 to store applications installed by the package manager, viz. inside the ''/ | + | |
- | - 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. | ||
- | ===== Creating SlackBuild scripts ===== | ||
- | A good hands-on tutorial on creating a SlackBuild script can be found [[http:// | + | ===== Створення скриптів SlakcBuild ===== |
- | 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 " | + | Гарний урок по створенню скриптів SlakcBuild можна знайти [[http:// |
- | 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. | + | Також, програмне забезпечення може бути написане на різних мовах програмування, використовувати різні системи збірки чи може використати інтерпретовану мову програмування в якої нема можливості встановлення цієї програми. В цій ситуації необхідно зробити багато кроків при написанні SlackBuild скрипта, цей процес може дуже відрізнятися від звичайної схеми. Просте копіювання команд з інших скриптів може спрацювати, а може і ні. |
- | <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 скриптів Ви будите збільшувати свій ступінь володіння написання Shell скриптів, | ||
+ | Завантаження SlackBuild скрипта до публічного репозіторія як наприклад http:// | ||
- | ===== Automated | + | ===== Автоматичні генератори |
- | Some tools exist that can assist you with creating a SlackBuild | + | Деякі інструменти які можуть допомогти в створенні |
- | * [[http:// | + | * [[http:// |
- | * [[http:// | + | * [[http:// |
- | ===== External Links ===== | + | ===== Зовнішні посилання |
- | * SlackBuilds | + | * SlackBuilds |
- | * SlackBuild | + | * SlackBuild |
- | ===== Sources | + | ===== Джерела |
- | * Originally written by | + | * Автор оригіналу |
<!-- Please do not change anything below this line--> | <!-- Please do not change anything below this line--> | ||
{{tag> | {{tag> |