Manjaro Difference between revisions of "Translations:Manjaro Packaging Standards/38/ru"

Difference between revisions of "Translations:Manjaro Packaging Standards/38/ru"

From Manjaro
(Created page with "Помните, что {{ic|namcap}} можно использовать для проверки как файлов pkg.tar.gz, так и PKGBUILD </li> <li> '''Зависи...")
 
(No difference)

Latest revision as of 11:51, 22 February 2023

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Manjaro Packaging Standards)
Remember {{ic|namcap}} can be used to check both pkg.tar.gz files and PKGBUILDs
</li>
<li> '''Dependencies'''
are the most common packaging error. Namcap can help detect them, but
it is not always correct. Verify dependencies by looking at source
documentation and the program website. </li>
<li>'''Do not use {{Ic|replaces}}''' in a PKGBUILD unless the package is to be renamed, for example when ''Ethereal'' became ''Wireshark''. If the package is an alternate version of an already existing package, use {{Ic|conflicts}} (and {{Ic|provides}} if that package is required by others). The main difference is: after syncing (-Sy) pacman immediately wants to replace an installed, 'offending' package upon encountering a package with the matching {{Ic|replaces}} anywhere in its repositories; {{Ic|conflicts}} on the other hand is only evaluated when actually installing the package, which is usually the desired behavior because it is less invasive.</li>
<li>
All files uploaded to the AUR should be contained in a '''compressed tar
file''' containing a directory with the '''{{ic|PKGBUILD}}''' and '''additional build files''' (patches, install, ...) in it.
{{bc|foo/PKGBUILD
foo/foo.install
foo/foo_bar.diff
foo/foo.rc.conf}}
The archive name should contain the name of the package
e.g. foo.tar.gz.

Помните, что namcap можно использовать для проверки как файлов pkg.tar.gz, так и PKGBUILD

  • Зависимости являются наиболее распространенной ошибкой при упаковке. Namcap может помочь обнаружить их, но он не всегда корректен. Убедитесь в наличии зависимостей, изучив исходную документации и на веб-сайте программы.
  • Не используйте replaces в PKGBUILD, если пакет не должен быть переименован, например, когда Ethereal стал Wireshark. Если пакет является альтернативной версией уже существующего пакета, используйте conflictsprovides, если этот пакет требуется другим). Основное различие: после синхронизации (-Sy) pacman немедленно хочет заменить установленный "нарушающий" пакет, если встретит пакет с соответствующим replaces где-либо в своих репозиториях; conflicts, с другой стороны, оценивается только при фактической установке пакета, что обычно является желаемым поведением, поскольку оно менее требовательно.
  • Все файлы, загружаемые на AUR, должны содержаться в сжатом tar файле", содержащем каталог с PKGBUILD и дополнительные файлы сборки (патчи, install, ...) в нем.
    foo/PKGBUILD
    foo/foo.install
    foo/foo_bar.diff
    foo/foo.rc.conf

    Имя архива должно содержать имя пакета например, foo.tar.gz.

  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.