# Package: `opencv4`

# Complain

Complain taken from `opencv` entry of blacklist.txt:

> [semifree] contains nonfree module and some nonfree data


# Patches

Note: Patches are identical to `opencv` package.

`libre.patch` has been taken from [Parabola](https://git.parabola.nu/abslibre.git/tree/libre/opencv/libre.patch) and converted from git diff to -Np1 format because xbps can't process it otherwise:

```
# Convert git diff to be used with -Np1
sed -i '/^diff --git/d' libre.patch
sed -i '/^index /d' libre.patch
```

Accompanying `libre.patch.args` have been created with `-Np1` content to keep it independent from template.


# Template

Some commands were taken from `mksource()` function of Parabola's [PKGBUILD](https://git.parabola.nu/abslibre.git/tree/libre/opencv/PKGBUILD) and placed on `post_patch()` function on template. The commands are similar to `opencv` but `contrib` related commands are added later in the `post_patch()`.

Template changes are there in `l_template_changes.patch`.
