# Patch

Get the patch from [here](https://git.parabola.nu/abslibre.git/tree/libre/abiword/liberation-fonts.patch) and save as `liberation-fonts.patch`. Replace `diff --git ` to `diff -Nur ` (because XBPS does not support git diff).

Then make sure a `liberation-fonts.patch.args` with just the text `-Np1` is there.

Basically:

```
mkdir patches
cd patches
wget https://git.parabola.nu/abslibre.git/plain/libre/abiword/liberation-fonts.patch || curl -LO https://git.parabola.nu/abslibre.git/plain/libre/abiword/liberation-fonts.patch
echo '-Np1' > liberation-fonts.patch.args
sed -i 's/diff --git /diff -Nur /g' liberation-fonts.patch
```

We should also add `liberation-fonts-ttf` to `depends` in the `template` file since we used Liberation fonts in the `liberation-fonts.patch`.


# Google search

There is a __Tools - Google search__ item by default. We need to remove that. We have a `remove-google.patch` and `remove-google.patch.args` that removes lines regarding inclusion of Google search plugin. We also have some commands in `pre_configure()` function in the template to be extra sure that this plugin doesn't get into the build.

# Details

See `l_template_changes.patch` for template changes.
