Difference between revisions of "Include:Abuild"

From Alpine Linux
Jump to: navigation, search
(reorder options and commands)
(updating options and commands)
Line 11: Line 11:
  
 
'''abuild options'''
 
'''abuild options'''
 +
* '''-A'''  Print CARCH and exit                                                                                                                                                 
 +
* '''-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
 
* '''-h'''  Show this help
* '''-c'''  Enable colored output
+
* '''-i'''  Install PKG after successful build
 +
* '''-k'''  Keep built packages, even if APKBUILD or sources are newer
 
* '''-m'''  Disable colors (monochrome)
 
* '''-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
 
* '''-q'''  Quiet
* '''-p'''  Set package destination directory
 
* '''-P'''  Set PKGDEST to REPODEST/<repo>/\$CARCH, where repo is the parent's dir name
 
* '''-s'''  Set source package destination directory
 
* '''-f'''  Force specified cmd, even if they have already been done
 
* '''-F'''  Force run as root
 
* '''-d'''  Disable dependency checking
 
 
* '''-r'''  Install missing dependencies from system repository (using sudo)
 
* '''-r'''  Install missing dependencies from system repository (using sudo)
 
* '''-R'''  Recursively build and install missing dependencies (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)
 
* '''-u'''  Recursively build and upgrade all dependencies (using sudo)
* '''-k'''  Keep built packages, even if APKBUILD or sources are newer
+
 
* '''-i'''  Install PKG after successful build
 
 
   
 
   
 
'''abuild commands'''
 
'''abuild commands'''
* '''sanitycheck'''  Basic sanity check of APKBUILD
+
* '''build'''       Compile and install package into \$pkgdir
* '''checksum'''  Generate checksum to be included in APKBUILD
+
* '''checksum'''   Generate checksum to be included in APKBUILD
* '''listpkg'''  List target packages
+
* '''clean'''       Remove temp build and install dirs
* '''sourcecheck''' Check if remote source package exists upstream
 
* '''up2date'''  Compare target and sources dates
 
 
 
* '''fetch'''  Fetch sources to \$SRCDEST and verify checksums
 
* '''md5check'''  Check md5sums
 
* '''unpack'''  Unpack sources to \$srcdir
 
* '''build''' Compile and install package into \$pkgdir
 
* '''package''' Create package in \$PKGDEST
 
* '''rootpkg'''  Run '$0 build package' as fakeroot
 
 
 
* '''srcpkg'''  Make a source package
 
* '''installdeps'''  Install packages listed in makedepends and depends
 
* '''uninstalldeps'''  Uninstall packages listed in makedepends and depends
 
 
 
* '''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
 
* '''cleancache'''  Remove downloaded files from \$SRCDEST
 +
* '''cleanoldpkg''' Remove binary packages except current version
 +
* '''cleanpkg'''    Remove already built binary and source package
 +
* '''deps'''        Install packages listed in makedepends and depends
 +
* '''fetch'''      Fetch sources to \$SRCDEST and verify checksums
 +
* '''index'''      Regenerate the APKINDEX for abuildrepo
 +
* '''listpkg'''    List target packages
 +
* '''package'''    Create package in \$PKGDEST
 +
* '''prepare'''    Apply patches
 +
* '''rootpkg'''    Run 'package', the split functions and create apks as fakeroot
 +
* '''sanitycheck''' Basic sanity check of APKBUILD
 +
* '''snapshot'''    Create a \$giturl or \$svnurl snapshot and upload to \$disturl
 +
* '''sourcecheck''' Check if remote source package exists upstream
 +
* '''srcpkg'''      Make a source package
 +
* '''undeps'''      Uninstall packages listed in makedepends and depends
 +
* '''unpack'''      Unpack sources to \$srcdir
 +
* '''up2date'''    Compare target and sources dates
 +
* '''verify'''      Verify checksums
  
 
[[Category:Development]]
 
[[Category:Development]]

Revision as of 17:27, 24 April 2015

To build a package, abuild 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.

abuild checksum && abuild -r

Below all options and commands for abuild are listed.

abuild [options] [-i PKG] [-P REPODEST] [-p PKGDEST] [-s SRCDEST] [cmd] ...


abuild options

  • -A Print CARCH and exit
  • -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 successful 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

  • build Compile and install package into \$pkgdir
  • checksum Generate checksum to be included in APKBUILD
  • clean Remove temp build and install dirs
  • cleancache Remove downloaded files from \$SRCDEST
  • cleanoldpkg Remove binary packages except current version
  • cleanpkg Remove already built binary and source package
  • deps Install packages listed in makedepends and depends
  • fetch Fetch sources to \$SRCDEST and verify checksums
  • index Regenerate the APKINDEX for abuildrepo
  • listpkg List target packages
  • package Create package in \$PKGDEST
  • prepare Apply patches
  • rootpkg Run 'package', the split functions and create apks as fakeroot
  • sanitycheck Basic sanity check of APKBUILD
  • snapshot Create a \$giturl or \$svnurl snapshot and upload to \$disturl
  • sourcecheck Check if remote source package exists upstream
  • srcpkg Make a source package
  • undeps Uninstall packages listed in makedepends and depends
  • unpack Unpack sources to \$srcdir
  • up2date Compare target and sources dates
  • verify Verify checksums