Changes to Makefile required for building the Debian package

--- simutrans-pak64-110.0.orig/Makefile
+++ simutrans-pak64-110.0/Makefile
@@ -2,7 +2,8 @@
 #   make clean all archives
 # to get fresh and ready to deploy .tbz2 and .zip archives
 
-MAKEOBJ ?= ./makeobj
+SHELL   = /bin/bash
+MAKEOBJ ?= /usr/games/makeobj
 
 DESTDIR  ?= simutrans
 PAKDIR   ?= $(DESTDIR)/pak
@@ -45,7 +46,7 @@
 
 .PHONY: $(DIRS) copy tar zip
 
-all: copy $(DIRS)
+all: $(DIRS)
 
 archives: tar zip
 
@@ -62,12 +63,12 @@
 
 copy:
 	@echo "===> COPY"
-	@mkdir -p $(PAKDIR)/sound $(PAKDIR)/text $(PAKDIR)/config $(PAKDIR)/scenario
-	@cp -p compat/compat.tab $(PAKDIR)
-	@cp -p sound/* $(PAKDIR)/sound
-	@cp -p config/* $(PAKDIR)/config
-	@cp -p scenario/* $(PAKDIR)/scenario
-	@cp -p pak.text/* $(PAKDIR)/text
+	install -m 755 -d $(PAKDIR)/sound $(PAKDIR)/text $(PAKDIR)/config $(PAKDIR)/scenario
+	install -m 644 compat/compat.tab $(PAKDIR)
+	install -m 644 sound/* $(PAKDIR)/sound
+	install -m 644 config/* $(PAKDIR)/config
+	install -m 644 scenario/* $(PAKDIR)/scenario
+	install -m 644 pak.text/* $(PAKDIR)/text
 
 $(DIRS64):
 	@echo "===> PAK64 $@"
@@ -83,7 +84,8 @@
 	@echo "===> OUTSIDE with REVISION and grounds"
 	@mkdir -p $(PAKDIR)
 	@echo -e -n "Obj=ground\nName=Outside\ncopyright=pak64 110.0 r" >$@/outside.dat
-	@svnversion >>$@/outside.dat
+	#@svnversion >>$@/outside.dat
+	@echo $(SVNREV) >>$@/outside.dat
 	@echo -e "Image[0][0]=outside.0.0\n-" >>$@/outside.dat
 	@$(MAKEOBJ) PAK64 $(PAKDIR)/ $@/ > /dev/null
 	@rm $@/outside.dat
