Package build minihowto

spacecruft
Jeff Moe 2022-05-20 20:24:19 -06:00
parent 7693e49057
commit 791c80d3d0
1 changed files with 33 additions and 0 deletions

View File

@ -38,7 +38,40 @@ I do see some of the resources now are CC-by-SA 4.0, a license which
didn't exist when the Debian bug was created. So it may be that it
can be built happily without DFSG issues using new data files.
Celestia depending on NASA's Spice/NAIF may be afoul of Debian's
DFSG because the terms are unique. It isn't really a standard license.
Debian tracker link:
* https://tracker.debian.org/pkg/celestia
# Build
Mini Debian package build howto.
```
# Install deps
sudo apt update
sudo apt install build-essential ccache \
debhelper chrpath cmake freeglut3-dev libeigen3-dev libfmt-dev \
libfreetype6-dev libepoxy-dev libglu1-mesa-dev libgtk2.0-dev \
libgtkglext1-dev libjpeg62-turbo-dev libluajit-5.1-dev libpng-dev \
libqt5opengl5-dev libtheora-dev qtbase5-dev qtbase5-dev-tools
# Add ccache to PATH in ~/.bashrc, and log back in
PATH=/usr/lib/ccache:$PATH
# Make dirs to put it all, as it writes packages to the *parent* dir.
mkdir celestia-deb
cd celestia-deb
git clone --recursive https://spacecruft.org/spacecruft/celestia
cd celestia
# Build the source pacakge, writes to parent dir
dpkg-buildpackage -rfakeroot -S -uc -us -sa
# Build Debian Packages
dpkg-buildpackage -rfakeroot -b -uc
```