Package: xscavenger
Version: 1.4.5-8
Followup-For: Bug #1092434
Control: tags -1 patch ftbfs
Dear Maintainer,
Here is a patch that could help to solve this issue.
It may be not perfect but at least try to simplify the packaging
and be able to build the package (using sbuild on my system).
Thanks,
Patrice
diff --git a/debian/Imakefile.debian b/debian/Imakefile.debian
deleted file mode 100644
index eaabf9f..000
--- a/debian/Imakefile.debian
+++ /dev/null
@@ -1,79 +0,0 @@
-# set this to the path where data files should be stored. LIBDIR
-# is automatically defined by imake, usually to /usr/X11R6/lib/X11, so
-# this should be a good default.
-
-LIBNAME = /usr/lib/games/xscavenger
-
-SRCS = anim.c edit.c scav.c x.c sound.c
-OBJS = $(SRCS:.c=.o)
-
-# the "subst" hack below is because imake uses the C preprocessor, which
-# will interpret an unquoted "/*" as a comment beginning.
-#LIB_DATA = $(subst S,/,..SdataS*)
-LIB_DATA = \
- ../data/badguy.lbm \
- ../data/brownblue.lbm \
- ../data/death.raw \
- ../data/dig.raw \
- ../data/fall.raw\
- ../data/flashspiral.lbm \
- ../data/gems.lbm\
- ../data/jungle.lbm \
- ../data/levels.scl \
- ../data/microman.lbm\
- ../data/pop.raw \
- ../data/redbrick.lbm\
- ../data/reddevil.lbm\
- ../data/regularguy.lbm \
- ../data/spiralthing.lbm \
- ../data/victory.raw
-
-
-LOCAL_LIBRARIES = $(XLIB)
-EXTRA_DEFINES = -DLIBNAME=\"$(LIBNAME)\"
-EXTRA_LOAD_FLAGS = -lasound
-
-AllTarget(xscavenger)
-NormalProgramTarget(xscavenger,$(OBJS),,,$(XLIB))
-InstallProgram(xscavenger,/usr/games)
-
-InstallMultipleFlags($(LIB_DATA),$(LIBNAME),-m 644)
-# set this to the path where data files should be stored. LIBDIR
-# is automatically defined by imake, usually to /usr/X11R6/lib/X11, so
-# this should be a good default.
-
-LIBNAME = /usr/lib/games/xscavenger
-
-SRCS = anim.c edit.c scav.c x.c sound.c
-OBJS = $(SRCS:.c=.o)
-
-# the "subst" hack below is because imake uses the C preprocessor, which
-# will interpret an unquoted "/*" as a comment beginning.
-#LIB_DATA = $(subst S,/,..SdataS*)
-LIB_DATA = \
- ../data/badguy.lbm \
- ../data/brownblue.lbm \
- ../data/death.raw \
- ../data/dig.raw \
- ../data/fall.raw\
- ../data/flashspiral.lbm \
- ../data/gems.lbm\
- ../data/jungle.lbm \
- ../data/levels.scl \
- ../data/microman.lbm\
- ../data/pop.raw \
- ../data/redbrick.lbm\
- ../data/reddevil.lbm\
- ../data/regularguy.lbm \
- ../data/spiralthing.lbm \
- ../data/victory.raw
-
-
-LOCAL_LIBRARIES = $(XLIB)
-EXTRA_DEFINES = -DLIBNAME=\"$(LIBNAME)\"
-
-AllTarget(xscavenger)
-NormalProgramTarget(xscavenger,$(OBJS),,,$(XLIB))
-InstallProgram(xscavenger,/usr/games)
-
-InstallMultipleFlags($(LIB_DATA),$(LIBNAME),-m 644)
diff --git a/debian/Imakefile.default b/debian/Imakefile.default
deleted file mode 100644
index 1980627..000
--- a/debian/Imakefile.default
+++ /dev/null
@@ -1,20 +0,0 @@
-# set this to the path where data files should be stored. LIBDIR
-# is automatically defined by imake, usually to /usr/X11R6/lib/X11, so
-# this should be a good default.
-LIBNAME = $(LIBDIR)/scavenger
-
-SRCS = anim.c edit.c scav.c x.c sound.c
-OBJS = $(SRCS:.c=.o)
-
-LIB_DATA = \
- ../data/badguy.lbm ../data/brownblue.lbm ../data/death.raw \
- ../data/dig.raw ../data/fall.raw ../data/levels.scl \
-../data/microman.lbm ../data/pop.raw ../data/redbrick.lbm \
- ../data/reddevil.lbm ../data/regularguy.lbm ../data/spiralthing.lbm \
- ../data/victory.raw
-
-LOCAL_LIBRARIES = $(XLIB) -lasound
-EXTRA_DEFINES = -DLIBNAME=\"$(LIBNAME)\"
-
-ComplexProgramTarget(scavenger)
-InstallMultipleFlags($(LIB_DATA),$(LIBNAME),-m 644)
diff --git a/debian/install b/debian/install
new file mode 100644
index 000..10b4faf
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+debian/xscavenger.desktop usr/share/applications
+debian/xscavenger-icon.xpm usr/share/pixmaps
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 000..2347827
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/xscavenger.6
diff --git a/debian/rules b/debian/rules
index 4f51fa7..8e81c35 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,141 +1,16 @@
#!/usr/bin/make -f
- -*- Mode: Makefile -*- ###
-## rules ---
-## Author : Marcus Brinkmann