|
|
(23 intermediate revisions by 14 users not shown) |
Line 1: |
Line 1: |
| == Package build helpers ==
| | #REDIRECT [[Abuild_and_Helpers]] |
| | |
| === abuild-keygen ===
| |
| {{:Abuild-keygen}}
| |
| | |
| === abuild-sign ===
| |
| {{:Abuild-sign}}
| |
| === abuild-tar ===
| |
| {{:Abuild-tar}}
| |
| | |
| === abuild ===
| |
| To build a package, <tt>abuild</tt> is used. Beside the package building functionality also options for other package maintainance tasks are provided.
| |
| | |
| If you just want to build a package from a APKBUILD file, only those two command are needed.
| |
| | |
| {{Cmd|abuild checksum && abuild -r}}
| |
| | |
| Below all options and commands for <tt>abuild</tt> are listed.
| |
| | |
| {{Cmd|<nowiki>abuild [options] [-i PKG] [-P REPODEST] [-p PKGDEST] [-s SRCDEST] [cmd] ...</nowiki>}}
| |
| | |
| {{Cmd|<nowiki>abuild [-c] -n PKGNAME[-PKGVER]</nowiki>}}
| |
| | |
| '''abuild options'''
| |
| * '''-c''' Enable colored output
| |
| * '''-d''' Disable dependency checking
| |
| * '''-f''' Force specified cmd, even if they are already done
| |
| * '''-F''' Force run as root
| |
| * '''-h''' Show this help
| |
| * '''-i''' Install PKG after successul build
| |
| * '''-k''' Keep built packages, even if APKBUILD or sources are newer
| |
| * '''-m''' Disable colors (monochrome)
| |
| * '''-p''' Set package destination directory
| |
| * '''-P''' Set PKGDEST to REPODEST/<repo>/\$CARCH, where repo is the parents dir name
| |
| * '''-q''' Quiet
| |
| * '''-r''' Install missing dependencies from system repository (using sudo)
| |
| * '''-R''' Recursively build and install missing dependencies (using sudo)
| |
| * '''-s''' Set source package destination directory
| |
| * '''-u''' Recursively build and upgrade all dependencies (using sudo)
| |
|
| |
| '''abuild commands'''
| |
| * '''checksum''' Generate checksum to be included in APKBUILD
| |
| * '''fetch''' Fetch sources to \$SRCDEST and verify checksums
| |
| * '''sanitycheck''' Basic sanity check of APKBUILD
| |
| * '''md5check''' Check md5sums
| |
| * '''unpack''' Unpack sources to \$srcdir
| |
| * '''build''' Compile and install package into \$pkgdir
| |
| * '''listpkg''' List target packages
| |
| * '''package''' Create package in \$PKGDEST
| |
| * '''rootpkg''' Run '$0 build package' as fakeroot
| |
| * '''clean''' Remove temp build and install dirs
| |
| * '''cleanoldpkg''' Remove binary packages except current version
| |
| * '''cleanpkg''' Remove already built binary and source package
| |
| * '''cleancache''' Remove downloaded files from \$SRCDEST
| |
| * '''srcpkg''' Make a source package
| |
| * '''sourcecheck''' Check if remote source package exists upstream
| |
| * '''up2date''' Compare target and sources dates
| |
| * '''installdeps''' Install packages listed in makedepends and depends
| |
| * '''uninstalldeps''' Uninstall packages listed in makedepends and depends
| |
| | |
| === abump ===
| |
| {{:Abump}}
| |
| | |
| === apkgrel ===
| |
| {{:Apkgrel}}
| |
| | |
| == APKBUILD generation ==
| |
| | |
| === newapkbuild ===
| |
| To create the actual APKBUILD file <tt>newapkbuild</tt> can serve you a template to start with. It will create a directory with the given package name, place an example/template APKBUILD file to the given directory, and fill some variables if those are provided.
| |
| | |
| {{:Newapkbuild}}
| |
| | |
| === apkbuild-cpan ===
| |
| {{:Apkbuild-cpan}}
| |
| | |
| === apkbuild-pypi ===
| |
| {{:Apkbuild-pypi}}
| |
| | |
| | |
| == Misc tools ==
| |
| === buildlab ===
| |
| More details can be found at the [[Buildlab|buildlab]] page.
| |
| | |
| | |
| === buildrepo ===
| |
| {{:Buildrepo}}
| |
| | |
| | |
| | |
| === cmp-apks-iso ===
| |
| | |
| === devbuild ===
| |
| | |
| === initramfs-init ===
| |