Hi Christian,
While this game is not maintained by the Games Team, this might be of interrest
to you: https://lists.debian.org/debian-devel-games/2025/12/msg00016.html
This might be asking a bit too much.
In the meantime please consider using dh-sequence-cruft
which also allows you to trim packaging a bit.
This also gives you the extra "rmdir --ignore-fail-on-non-empty /var/games" step for free.
I've asked piuparts to become less permissive in the future:
https://salsa.debian.org/debian/piuparts/-/merge_requests/80
patch: https://salsa.debian.org/debian/circuslinux/-/merge_requests/4
Greetings
Alexandre
--- a/debian/circuslinux.postrm
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-set -e
-
-if [ "$1" = purge ] && [ -e /var/games/circuslinux/scorefile ]; then
- rm /var/games/circuslinux/scorefile
-fi
-
-#DEBHELPER#
--- /dev/null
+++ b/debian/circuslinux.purge
@@ -0,0 +1 @@
+/var/games/circuslinux/
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Priority: optional
Build-Depends: autoconf,
automake,
debhelper-compat (= 13),
+ dh-sequence-cruft,
devscripts,
libsdl-image1.2-dev,
libsdl-mixer1.2-dev,
--- a/debian/circuslinux.dirs
+++ b/debian/circuslinux.dirs
@@ -5,5 +5,3 @@ usr/share/games/circuslinux/data/music
usr/share/games/circuslinux/data/sounds
usr/share/man/man6
usr/share/pixmaps
-var/games
-var/games/circuslinux