translator
11,049
edits
(Created page with "PKGBUILD") Tags: Mobile web edit Mobile edit |
(Created page with "== Переменные == Ниже перечислены переменные, которые могут быть заполнены в файле PKGBUILD. {{ic|pkgname}},...") |
||
Line 5: | Line 5: | ||
Packages in Manjaro Linux are built using the [[makepkg]] utility and information stored in PKGBUILDs. When '''makepkg''' is run, it searches for a {{Ic|PKGBUILD}} in the current directory and follows the instructions therein to either compile or otherwise acquire the files to build a package file ({{ic|''pkgname''.pkg.tar.xz}}). The resulting package contains binary files and installation instructions, readily installed with [[pacman]]. | Packages in Manjaro Linux are built using the [[makepkg]] utility and information stored in PKGBUILDs. When '''makepkg''' is run, it searches for a {{Ic|PKGBUILD}} in the current directory and follows the instructions therein to either compile or otherwise acquire the files to build a package file ({{ic|''pkgname''.pkg.tar.xz}}). The resulting package contains binary files and installation instructions, readily installed with [[pacman]]. | ||
== | == Переменные == | ||
Ниже перечислены переменные, которые могут быть заполнены в файле PKGBUILD. {{ic|pkgname}}, {{ic|pkgver}}, {{ic|pkgrel}} и {{ic|arch}} являются обязательными. {{ic|license}} не является строго необходимым для сборки пакета, но рекомендуется для любых PKGBUILDS, которыми вы, возможно, захотите поделиться с другими. При его отсутствии {{ic|makepkg}} выдает предупреждения. | |||
It is common practice to define the variables in the PKGBUILD in same order as given here. However, this is not mandatory, as long as correct [[Bash]] syntax is used. | It is common practice to define the variables in the PKGBUILD in same order as given here. However, this is not mandatory, as long as correct [[Bash]] syntax is used. |