# Package: `debootstrap`

# Complain

> [uses-nonfree] bootstrap a basic Debian system

XBPS version is not built from source (based on compiled .deb).


# Files

Files below has been taken from [Parabola](https://git.parabola.nu/abslibre.git/tree/libre/debootstrap):

- debootstrap.8
- gnewsense
- trisquel


# Template

Changed `short_desc` to add free distros and mention that it's without Debian support (similar to [Parabola](https://git.parabola.nu/abslibre.git/tree/libre/debootstrap/PKGBUILD)).

Changed `distfiles` to include the project that allows to run debootstrap without installing it on system. Also included PureOS tar.gz file to include a `scripts/pureos` file into source before build.

Added `post_patch()` function and added+modified most of the code from `prepare()` function of Parabola [PKGBUILD](https://git.parabola.nu/abslibre.git/tree/libre/debootstrap/PKGBUILD). To fix a `chown: changing ownership of ... Invalid argument` error, `chown` line was commented with a `sed` command. `arch-detect.patch` from Parabola was omitted.

Deleted `do_install()` because it had code for building from .deb

Added `post_install()` with some code from `package()` function from Parabola's PKGBUILD. Also added and modified some code from previous `do_install()` to `post_install()` for license and `${DESTDIR}/usr/share/debootstrap/arch`.

`template` changes are in `l_template_changes.patch`.
