celestia/debian/rules

42 lines
1.3 KiB
Makefile
Executable File

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
%:
dh $@
override_dh_auto_configure:
if echo "$(DEB_VERSION)" | grep -q '~git' ; then \
_git_commit=$$(echo "$(DEB_VERSION)" | cut -d'+' -f2) ; \
else \
_git_commit="unknown" ; \
fi ; \
dh_auto_configure --parallel -- \
-DENABLE_GLUT=ON \
-DENABLE_GTK=ON \
-DENABLE_QT=ON \
-DENABLE_TOOLS=ON \
-DENABLE_TTF=ON \
-DENABLE_DATA=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DGIT_COMMIT="$$_git_commit"
override_dh_install:
dos2unix ./src/tools/stardb/buildstardb.pl
dos2unix ./src/tools/xindex/buildxindices.pl
find debian/tmp/usr/bin/ -type f ! -name *.pl -exec chrpath --delete {} ';'
chrpath --delete debian/tmp/usr/lib/*/libcelestia.so.*
dh_install --fail-missing
mv debian/celestia-common/usr/share/celestia/celestia.cfg \
debian/celestia-common/etc/celestia.cfg
ln -s /etc/celestia.cfg debian/celestia-common/usr/share/celestia/
rm debian/celestia-common/usr/share/celestia/fonts/*
ln -s /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf \
debian/celestia-common/usr/share/celestia/fonts/
ln -s /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf \
debian/celestia-common/usr/share/celestia/fonts/