Hi Holger,
The nice part is that I don't need to explain _you_ what piuparts is.
piuparts cannot detect all the files created at runtime.
Here is a very short patch to teach tuxtype to clear /var/games/tuxtype/.
Here's also underneath the generated templated script.
Greetings
Alexandre
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Maintainer: Holger Levsen <holger@debian.org>
Standards-Version: 4.7.0
Rules-Requires-Root: binary-targets
Build-Depends: debhelper-compat (=13),
+ dh-sequence-cruft,
libsdl-mixer1.2-dev,
libsdl-image1.2-dev,
libsdl1.2-dev,
--- /dev/null
+++ b/debian/tuxtype.purge
@@ -0,0 +1 @@
+/var/games/tuxtype/
$ cat debian/tuxtype/DEBIAN/postrm
#!/bin/sh
set -e
# Automatically added by dh_cruft/0.9.80
if [ "$1" = "purge" ]
then
# we need to glob, so no quotes
rm -rf ${DPKG_ROOT:-}/var/games/tuxtype/
if test -d ${DPKG_ROOT:-}/var/games/
then
rmdir --ignore-fail-on-non-empty ${DPKG_ROOT:-}/var/games/
fi
fi
# End automatically added section
# Automatically added by dh_installmenu/13.31
if [ -x "`command -v update-menus`" ] && [ -x "$DPKG_ROOT`command -v update-menus`" ]; then update-menus ; fi
# End automatically added section