Neon/Locally build packages
< Neon
This page describes some basics in taking a package from https://invent.kde.org/neon/ and building it locally. This can be useful for doing local testing before committing changes.
Prerequisites
- A pre-existing KDE development environment
dpkg-dev
package will include the standard debian toolchain for building packages.
Setting up local files for building package
- Clone the package repository repository, i.e. https://invent.kde.org/neon/kde/libkdegames
- Copy the source tree from your kde sources to where the
debian/
path resides. - Create a
usr/share/locale
to simulate CI locale injection,mkdir -p usr/share/locale && touch usr/share/locale/stub
- Remove symbols to simulate CI removing the symbol files,
rm debian/*.symbols
Building the package
Because a tarball does not exist, you will need to tell the package builder to not clean the environment before build -nc
. It's helpful to further clean the environment after for easier git usage for committing content To do this, run:
dpkg-buildpackage -nc -tc
Alternatively, modify debian/source/format
with native
and the tooling can be used without specifying options like -nc
.