Skip to content

Commit

Permalink
Remove XBPS coroutine section
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorSuperTux committed Jul 20, 2024
1 parent dc68a90 commit ab22a92
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions docpages/install/install-void-xbps.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,3 @@ g++ mybot.cpp -o mybot -ldpp
```

\include{doc} install_prebuilt_footer.dox

To build D++ with coroutine support as an XBPS package, follow the steps below. Ensure that [xbps-src is set up](https://github.com/void-linux/void-packages?tab=readme-ov-file#quick-start) beforehand:

```bash
# Inside the void-packages root folder
git checkout master && git pull
# Modifies the configure arguments to include coroutine support (-DDPP_CORO=ON)
grep -q 'configure_args=.*-DDPP_CORO=ON' srcpkgs/dpp/template || sed -i -e 's/\(configure_args="[^"]*\)"/\1 -DDPP_CORO=ON"/' srcpkgs/dpp/template
./xbps-src -K pkg dpp
```

Then as root:
```bash
# Inside the void-packages root folder
xbps-install --repository hostdir/binpkgs dpp-devel
```

This will do the following three things:
- Update the void-packages repository to the latest commit on master
- Patch the template file of D++ to enable coroutine support
- Build an XBPS package for D++ and install it

\note Cloning the void-packages repository may take some time

\include{doc} coro_warn.dox

0 comments on commit ab22a92

Please sign in to comment.