Subject: Bug#3716: Problems encountered while compiling "infocom" on m68k arch.

From: llucius <[email-masked]>
Date: Mon, 8 Jul 1996 13:39:15 -0500 (CDT)

Package: infocom
Version: 4.01pl2-2

The following problems were encountered while building on m68k arch:

1)  "debian.rules" did not support different architectures.
2)  "debian.rules" created improperly named .deb binaries (new standard).
3)  "debian.control" did not contain architecture field.

The following patches correct these problems:

--- orig/infocom-4.01pl2/debian.control	Wed Feb 28 17:20:15 1996
+++ infocom-4.01pl2/debian.control	Mon Jul  8 00:37:41 1996
@@ -1,5 +1,6 @@
 Package: infocom
 Version: =V-=D
+Architecture: =A
 Priority: optional
 Section: games
 Maintainer: Brian White <[email-masked]>
--- orig/infocom-4.01pl2/debian.rules	Wed Feb 28 18:47:52 1996
+++ infocom-4.01pl2/debian.rules	Mon Jul  8 00:46:46 1996
@@ -9,6 +9,7 @@
 package=infocom
 version=4.01pl2
 debian=2
+arch=$(shell dpkg --print-architecture)
 
 # The next section may have to be extensively modified
 
@@ -32,7 +33,8 @@
 binary:		checkroot build
 	-rm -rf debian-tmp
 	mkdir -p debian-tmp/DEBIAN
-	sed -e 's/=V/$(version)/; s/=D/$(debian)/' debian.control >debian-tmp/DEBIAN/control
+	sed -e 's/=V/$(version)/; s/=D/$(debian)/; s/=A/$(arch)/' \ 
+		debian.control >debian-tmp/DEBIAN/control
 	mkdir -p debian-tmp/usr/games
 	install -m755 infocom infocoma debian-tmp/usr/games
 	mkdir -p debian-tmp/usr/doc/copyright
@@ -46,7 +48,7 @@
 	chown -R root.root debian-tmp
 	chmod -R g-ws debian-tmp
 	dpkg --build debian-tmp
-	mv debian-tmp.deb ../$(package)-$(version)-$(debian).deb
+	dpkg-name -o -s .. debian-tmp.deb
 	rm -rf debian-tmp
 
 define checkdir