[deb] Use xyzv2bin to create binary xyzv files on installation

pull/23/head
Hleb Valoshka 2020-04-09 13:39:39 +03:00 committed by Hleb Valoshka
parent 0a35ee0b53
commit bbee112b1b
3 changed files with 35 additions and 0 deletions

17
debian/celestia-data.postinst vendored 100644
View File

@ -0,0 +1,17 @@
#!/bin/sh
set -e
case "$1" in
configure)
for d in extras extras-standard; do
if [ -d "/usr/share/celestia/$d" ]; then
find "/usr/share/celestia/$d" -name \*.xyzv | xargs -I{} xyzv2bin "{}" "{}bin"
fi
done
;;
esac
#DEBHELPER#
exit 0

17
debian/celestia-data.prerm vendored 100644
View File

@ -0,0 +1,17 @@
#!/bin/sh
set -e
case "$1" in
remove|deconfigure)
for d in extras extras-standard; do
if [ -d "/usr/share/celestia/$d" ]; then
find "/usr/share/celestia/$d" -name \*.xyzvbin -delete
fi
done
;;
esac
#DEBHELPER#
exit 0

1
debian/control vendored
View File

@ -12,6 +12,7 @@ Conflicts: celestia (<< 1.4.1), celestia-common (<< 1.7.0~), celestia-common-non
Replaces: celestia (<< 1.4.1), celestia-common (<< 1.7.0~), celestia-common-nonfree (<< 1.7.0~)
Recommends: celestia
Depends: ${misc:Depends}
Pre-Depends: celestia-tools
Description: data files for Celestia, a real-time visual space simulation
Celestia is a free 3D astronomy program. Based on the Hipparcos
Catalogue, it allows users to display objects ranging in scale from