git clone --depth 1 --branch v2.0.x https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/ cd libgpiod ./autogen.sh --prefix="$PWD/install/" make install In order to inform tools about the build location, you can now set: ...