sbuild: add page (#12079)

* sbuild: add page

---------

Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
pull/23/head
Emanuele Rocca 2024-01-21 08:24:57 +01:00 committed by GitHub
parent 320d0e7f0e
commit 5f37127fa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 32 additions and 0 deletions

32
pages/common/sbuild.md Normal file
View File

@ -0,0 +1,32 @@
# sbuild
> Build a Debian binary package in a clean `chroot` environment.
> More information: <https://wiki.debian.org/sbuild>.
- Build the package in the current directory:
`sbuild`
- Build the given package:
`sbuild {{package}}`
- Build for a certain distribution:
`sbuild --dist {{distribution}}`
- Build using custom dependencies (if a directory is passed, all files ending with `.deb` are used):
`sbuild --extra-package {{path/to/file_or_directory}}`
- Run a shell in case of build failure to further investigate:
`sbuild --build-failed-commands=%SBUILD_SHELL`
- Cross build for a certain architecture:
`sbuild --host {{architecture}}`
- Build for the given native architecture:
`sbuild --arch {{architecture}}`