<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Matt+me</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Matt+me"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Matt_me"/>
	<updated>2026-05-01T01:23:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Abuild_and_Helpers&amp;diff=27812</id>
		<title>Abuild and Helpers</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Abuild_and_Helpers&amp;diff=27812"/>
		<updated>2024-11-12T10:08:38Z</updated>

		<summary type="html">&lt;p&gt;Matt me: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &amp;lt;code&amp;gt;abuild&amp;lt;/code&amp;gt; package provides scripts necessary for creating packages for Alpine Linux. It implements functionality for building packages as well as additional commands and options for package maintenance.&lt;br /&gt;
&lt;br /&gt;
For package development and maintenance, it is recommended to install the &amp;lt;code&amp;gt;alpine-sdk&amp;lt;/code&amp;gt;, which will install &amp;lt;code&amp;gt;abuild&amp;lt;/code&amp;gt; in addition to other relevant tools.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add alpine-sdk}}&lt;br /&gt;
&lt;br /&gt;
The [https://gitlab.alpinelinux.org/alpine/abuild git repository] always contains the latest version of the scripts, example-files, and makefiles.&lt;br /&gt;
&lt;br /&gt;
== Building packages ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In order to use &amp;lt;code&amp;gt;abuild&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
* The user executing &amp;lt;code&amp;gt;abuild&amp;lt;/code&amp;gt; must be a member of the &amp;lt;code&amp;gt;abuild&amp;lt;/code&amp;gt; group.&lt;br /&gt;
* [[Abuild_and_Helpers#Setting_up_the_build_environment|The environment must be set up for abuild]].&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; into the directory before running them.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;abuild checksum&amp;lt;/code&amp;gt;: updates the checksums for source files.&lt;br /&gt;
* &amp;lt;code&amp;gt;abuild -r&amp;lt;/code&amp;gt;: builds the package.&lt;br /&gt;
&lt;br /&gt;
The [https://git.alpinelinux.org/abuild/tree/abuild.1.scd manual page] (available via &amp;lt;code&amp;gt;man abuild&amp;lt;/code&amp;gt;) describes all options and commands for &amp;lt;code&amp;gt;abuild&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Building in a chroot ===&lt;br /&gt;
{{:Include:AbuildRootBld}}&lt;br /&gt;
&lt;br /&gt;
== Bumping a package version ==&lt;br /&gt;
&lt;br /&gt;
The tool &amp;lt;code&amp;gt;abump&amp;lt;/code&amp;gt; is a utility to bump pkgver in APKBUILD files if the package gets an update to a newer upstream release. &amp;lt;code&amp;gt;abump&amp;lt;/code&amp;gt; will update the package&#039;s &amp;lt;code&amp;gt;pkgver&amp;lt;/code&amp;gt;, rebuild it and create a new commit with the resulting changes.&lt;br /&gt;
&lt;br /&gt;
The [https://git.alpinelinux.org/abuild/tree/abump.1.scd manual page] (available via &amp;lt;code&amp;gt;man abump&amp;lt;/code&amp;gt;) describes all options for &amp;lt;code&amp;gt;abump&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Updating a package release ==&lt;br /&gt;
&amp;lt;!-- Shouldn&#039;t this be apkrel? None of the other packaging tools use &amp;quot;apkg...&amp;quot;. Or perhaps it should be unified with abump? --&amp;gt;&lt;br /&gt;
If you want to bump or reset the pkgrel value of your APKBUILD or test your APKBUILD files, &amp;lt;tt&amp;gt;apkgrel&amp;lt;/tt&amp;gt; can assist you.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;apkgrel -a|-h|-s NUM|-t|-z [-f] FILE...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;apkgrel options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;-a&#039;&#039;&#039;  Add 1 to current pkgrel&lt;br /&gt;
* &#039;&#039;&#039;-f&#039;&#039;&#039;  Force, even if given files are not in proper format&lt;br /&gt;
* &#039;&#039;&#039;-h&#039;&#039;&#039;  Show this help&lt;br /&gt;
* &#039;&#039;&#039;-s&#039;&#039;&#039;  Set pkgrel to NUM&lt;br /&gt;
* &#039;&#039;&#039;-t&#039;&#039;&#039;  Only verify that files are in proper format&lt;br /&gt;
* &#039;&#039;&#039;-z&#039;&#039;&#039;  Set pkgrel to 0&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
&lt;br /&gt;
== Generating new APKBUILDs ==&lt;br /&gt;
&lt;br /&gt;
=== newapkbuild ===&lt;br /&gt;
To create the actual APKBUILD file {{Pkg|newapkbuild}} can serve you a template to start with. It will create a directory with the given package name, place an example/template APKBUILD file in the given directory, and fill some variables if those are provided.&lt;br /&gt;
&lt;br /&gt;
The [https://git.alpinelinux.org/abuild/tree/newapkbuild.1.scd manual page] (available via &amp;lt;code&amp;gt;man newapkbuild&amp;lt;/code&amp;gt;) describes all options for &amp;lt;code&amp;gt;newapkbuild&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== apkbuild-cpan ===&lt;br /&gt;
The [https://www.cpan.org/ Comprehensive Perl Archive Network] (CPAN) provides a large collection of perl software and documentation. &amp;lt;tt&amp;gt;apkbuild-cpan&amp;lt;/tt&amp;gt; helps with the creation of APKBUILD for perl modules from CPAN.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apkbuild-cpan [create &amp;lt;Module::Name&amp;gt; &amp;lt;nowiki&amp;gt;| check | recreate | update | upgrade]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
This command is provided by the {{Pkg|apkbuild-cpan}} package.&lt;br /&gt;
&lt;br /&gt;
=== apkbuild-pypi ===&lt;br /&gt;
&lt;br /&gt;
The [https://pypi.org/ Python Package Index] (PyPi) is a repository of software and libraries for the Python programming language. &amp;lt;tt&amp;gt;apkbuild-pypi&amp;lt;/tt&amp;gt; helps with the creation of APKBUILD for python package hosted at PyPI.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apkbuild-pypi [create &amp;lt;package&amp;gt; &amp;lt;nowiki&amp;gt;| check | recreate | update | upgrade&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
This command is provided by the {{Pkg|apkbuild-pypi}} package.&lt;br /&gt;
&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
&lt;br /&gt;
== Signing packages and indexes ==&lt;br /&gt;
&lt;br /&gt;
=== abuild-sign ===&lt;br /&gt;
{{:Include:Abuild-sign}}&lt;br /&gt;
&lt;br /&gt;
=== abuild-tar ===&lt;br /&gt;
{{:Include:Abuild-tar}}&lt;br /&gt;
&lt;br /&gt;
=== buildrepo ===&lt;br /&gt;
{{:Include:Buildrepo}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setting up the build environment ==&lt;br /&gt;
&lt;br /&gt;
=== abuild-keygen ===&lt;br /&gt;
{{:Include:Abuild-keygen}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ToDo&lt;br /&gt;
=== cmp-apks-iso ===&lt;br /&gt;
&lt;br /&gt;
=== devbuild ===&lt;br /&gt;
&lt;br /&gt;
=== initramfs-init ===&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Matt me</name></author>
	</entry>
</feed>