<?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=Sc</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=Sc"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Sc"/>
	<updated>2026-05-01T04:47:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Include:Abuild&amp;diff=10806</id>
		<title>Include:Abuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Include:Abuild&amp;diff=10806"/>
		<updated>2015-04-24T17:27:20Z</updated>

		<summary type="html">&lt;p&gt;Sc: updating options and commands&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To build a package, &amp;lt;tt&amp;gt;abuild&amp;lt;/tt&amp;gt; is used. Beside the package building functionality also options for other package maintainance tasks are provided.&lt;br /&gt;
&lt;br /&gt;
If you just want to build a package from a APKBUILD file, only those two command are needed.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|abuild checksum &amp;amp;&amp;amp; abuild -r}}&lt;br /&gt;
&lt;br /&gt;
Below all options and commands for &amp;lt;tt&amp;gt;abuild&amp;lt;/tt&amp;gt; are listed.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;abuild [options] [-i PKG] [-P REPODEST] [-p PKGDEST] [-s SRCDEST] [cmd] ...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;abuild options&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;-A&#039;&#039;&#039;  Print CARCH and exit                                                                                                                                                   &lt;br /&gt;
* &#039;&#039;&#039;-c&#039;&#039;&#039;  Enable colored output&lt;br /&gt;
* &#039;&#039;&#039;-d&#039;&#039;&#039;  Disable dependency checking&lt;br /&gt;
* &#039;&#039;&#039;-f&#039;&#039;&#039;  Force specified cmd, even if they are already done&lt;br /&gt;
* &#039;&#039;&#039;-F&#039;&#039;&#039;  Force run as root&lt;br /&gt;
* &#039;&#039;&#039;-h&#039;&#039;&#039;  Show this help&lt;br /&gt;
* &#039;&#039;&#039;-i&#039;&#039;&#039;  Install PKG after successful build&lt;br /&gt;
* &#039;&#039;&#039;-k&#039;&#039;&#039;  Keep built packages, even if APKBUILD or sources are newer&lt;br /&gt;
* &#039;&#039;&#039;-m&#039;&#039;&#039;  Disable colors (monochrome)&lt;br /&gt;
* &#039;&#039;&#039;-p&#039;&#039;&#039;  Set package destination directory&lt;br /&gt;
* &#039;&#039;&#039;-P&#039;&#039;&#039;  Set PKGDEST to REPODEST/&amp;lt;repo&amp;gt;/\$CARCH, where repo is the parents dir name&lt;br /&gt;
* &#039;&#039;&#039;-q&#039;&#039;&#039;  Quiet&lt;br /&gt;
* &#039;&#039;&#039;-r&#039;&#039;&#039;  Install missing dependencies from system repository (using sudo)&lt;br /&gt;
* &#039;&#039;&#039;-R&#039;&#039;&#039;  Recursively build and install missing dependencies (using sudo)&lt;br /&gt;
* &#039;&#039;&#039;-s&#039;&#039;&#039;  Set source package destination directory&lt;br /&gt;
* &#039;&#039;&#039;-u&#039;&#039;&#039;  Recursively build and upgrade all dependencies (using sudo)&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;abuild commands&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;build&#039;&#039;&#039;       Compile and install package into \$pkgdir&lt;br /&gt;
* &#039;&#039;&#039;checksum&#039;&#039;&#039;    Generate checksum to be included in APKBUILD&lt;br /&gt;
* &#039;&#039;&#039;clean&#039;&#039;&#039;       Remove temp build and install dirs&lt;br /&gt;
* &#039;&#039;&#039;cleancache&#039;&#039;&#039;  Remove downloaded files from \$SRCDEST&lt;br /&gt;
* &#039;&#039;&#039;cleanoldpkg&#039;&#039;&#039; Remove binary packages except current version&lt;br /&gt;
* &#039;&#039;&#039;cleanpkg&#039;&#039;&#039;    Remove already built binary and source package&lt;br /&gt;
* &#039;&#039;&#039;deps&#039;&#039;&#039;        Install packages listed in makedepends and depends&lt;br /&gt;
* &#039;&#039;&#039;fetch&#039;&#039;&#039;       Fetch sources to \$SRCDEST and verify checksums&lt;br /&gt;
* &#039;&#039;&#039;index&#039;&#039;&#039;       Regenerate the APKINDEX for abuildrepo&lt;br /&gt;
* &#039;&#039;&#039;listpkg&#039;&#039;&#039;     List target packages&lt;br /&gt;
* &#039;&#039;&#039;package&#039;&#039;&#039;     Create package in \$PKGDEST&lt;br /&gt;
* &#039;&#039;&#039;prepare&#039;&#039;&#039;     Apply patches&lt;br /&gt;
* &#039;&#039;&#039;rootpkg&#039;&#039;&#039;     Run &#039;package&#039;, the split functions and create apks as fakeroot&lt;br /&gt;
* &#039;&#039;&#039;sanitycheck&#039;&#039;&#039; Basic sanity check of APKBUILD&lt;br /&gt;
* &#039;&#039;&#039;snapshot&#039;&#039;&#039;    Create a \$giturl or \$svnurl snapshot and upload to \$disturl&lt;br /&gt;
* &#039;&#039;&#039;sourcecheck&#039;&#039;&#039; Check if remote source package exists upstream&lt;br /&gt;
* &#039;&#039;&#039;srcpkg&#039;&#039;&#039;      Make a source package&lt;br /&gt;
* &#039;&#039;&#039;undeps&#039;&#039;&#039;      Uninstall packages listed in makedepends and depends&lt;br /&gt;
* &#039;&#039;&#039;unpack&#039;&#039;&#039;      Unpack sources to \$srcdir&lt;br /&gt;
* &#039;&#039;&#039;up2date&#039;&#039;&#039;     Compare target and sources dates&lt;br /&gt;
* &#039;&#039;&#039;verify&#039;&#039;&#039;      Verify checksums &lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Sc</name></author>
	</entry>
</feed>