build module

Author:Chris Warrick <chris@chriswarrick.com>
Copyright:© 2011-2023, Chris Warrick.
License:BSD (see /LICENSE or Appendix B.)
Date:2023-01-30
Version:4.3.2

New in version 2.1.0.0.

Changed in version 3.0.0: Class removed, its methods became module-level functions

Build AUR packages.

Copyright:© 2011-2023, Chris Warrick.
License:BSD (see /LICENSE).
pkgbuilder.build.auto_build(pkgname, performdepcheck=True, pkginstall=True, completelist=None, pkgbuild_edit=False)[source]

A function that builds everything, that should be used by everyone.

This function makes building AUR deps possible. If you can, use it.

Note

This function returns a list of packages to install with pacman -U. Please take care of it. Running PKGBUILDer/PBWrapper standalone or .__main__.main() will do that.

pkgbuilder.build.clone(pkgbase)[source]

Clone or update a git repo.

New in version 4.0.0.

pkgbuilder.build.asp_export(pkg)[source]

Export a package from ASP to the current working directory.

pkgbuilder.build.prepare_deps(srcinfo_path, pkgname=None)[source]

Get (make)depends from a .SRCINFO file and returns them.

(pkgname is now discarded, because it messes up one-build split packages.)

Changed in version 4.0.1.

In the past, this function used to get data via bash -c.

pkgbuilder.build.depcheck(depends, pkgobj=None)[source]

Perform a dependency check.

pkgbuilder.build.fetch_runner(pkgnames, preprocessed=False)[source]

Run the fetch procedure.

pkgbuilder.build.build_runner(pkgname, performdepcheck=True, pkginstall=True, pkgbuild_edit=False)[source]

A build function, which actually links to others.

DO NOT use it unless you re-implement auto_build!