Include:Abuild: Difference between revisions

From Alpine Linux
m (Formatting)
(added back content and removed redirect to this Include page so this can be transcluded)
Tag: Removed redirect
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
To build a package, <code>abuild</code> is used. Besides the package building functionality, options for other package maintenance tasks are also provided.
If you just want to build a package from an [[APKBUILD Reference|APKBUILD]] file, only  two command are needed. Both commands operate on an APKBUILD file in the current directory, so you should <code>cd</code> into the directory before running them.


If you just want to build a package from an [[APKBUILD Reference|APKBUILD]] file, only  two command are needed.
* <code>abuild checksum</code>: updates the checksums for source files.
 
* <code>abuild -r</code>: builds the package.
First cd into the package directory (the directory with the APKBUILD file). Then run:
 
{{Cmd|abuild checksum && abuild -r}}
 
To use the command above, you have to be in the <code>abuild</code> group.
Also, if you haven't already, you will need to [[Abuild_and_Helpers#Setting_up_the_build_environment|setup your abuild environment]].


The [https://git.alpinelinux.org/abuild/tree/abuild.1.scd manual page] (available via <code>man abuild</code>) describes all options and commands for <code>abuild</code>.
The [https://git.alpinelinux.org/abuild/tree/abuild.1.scd manual page] (available via <code>man abuild</code>) describes all options and commands for <code>abuild</code>.
==== See also ====
* [[Abuild and Helpers]]
[[category: Package Manager]]
[[Category:Development]]

Latest revision as of 16:55, 13 March 2025

If you just want to build a package from an APKBUILD file, only two command are needed. Both commands operate on an APKBUILD file in the current directory, so you should cd into the directory before running them.

  • abuild checksum: updates the checksums for source files.
  • abuild -r: builds the package.

The manual page (available via man abuild) describes all options and commands for abuild.