Include:Abuild: Difference between revisions

From Alpine Linux
m (Formatting)
(Tidy up the whole page)
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.
To build a package the <code>abuild</code> command is used. It implements functionality for building packages as well as additional commands and options for package maintenance.


If you just want to build a package from an [[APKBUILD Reference|APKBUILD]] file, only  two command are needed.
== Prerequisites ==


First cd into the package directory (the directory with the APKBUILD file). Then run:
In order to use <code>abuild</code>:


{{Cmd|abuild checksum && abuild -r}}
* Your user account must be a member of the <code>abuild</code> group.
* [[Abuild_and_Helpers#Setting_up_the_build_environment|The environment must be set up for abuild]].


To use the command above, you have to be in the <code>abuild</code> group.
== Basic usage ==
Also, if you haven't already, you will need to [[Abuild_and_Helpers#Setting_up_the_build_environment|setup your abuild environment]].
 
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.
 
* <code>abuild checksum</code>: updates the checksums for source files.
* <code>abuild -r</code>: builds the package.
 
Additionally, <code>abump pkgname-pkgver</code> is often used to update a package. <code>abump</code> will update the package's <code>pkgver</code>, rebuild it and create a new commit with the resulting changes.


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>.

Revision as of 14:34, 19 November 2023

To build a package the abuild command is used. It implements functionality for building packages as well as additional commands and options for package maintenance.

Prerequisites

In order to use abuild:

Basic usage

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.

Additionally, abump pkgname-pkgver is often used to update a package. abump will update the package's pkgver, rebuild it and create a new commit with the resulting changes.

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

See also