File ziptool-1.4.0-makefile.patch of Package ziptool

--- Makefile
+++ Makefile
@@ -12,7 +12,8 @@
 # Installation directories
 #
 INSTALL_BIN_DIR = /usr/bin
-INSTALL_MAN_DIR = /usr/man
+INSTALL_MAN_DIR = /usr/share/man
+DESTDIR =
 
 all: ziptool
 
@@ -20,14 +21,13 @@
 	rm -f jaztool ziptool core *.o
 
 install: all
-	chown root.root ziptool
 	chmod 755 ziptool
-	chmod +s ziptool
-	cp ziptool $(INSTALL_BIN_DIR)
-	strip $(INSTALL_BIN_DIR)/ziptool
-	cd $(INSTALL_BIN_DIR); ln -sf ziptool jaztool
-	cp ziptool.1.gz $(INSTALL_MAN_DIR)/man1
-	cd $(INSTALL_MAN_DIR)/man1; ln -sf ziptool.1.gz jaztool.1.gz
+	mkdir -p ${DESTDIR}/$(INSTALL_BIN_DIR)
+	cp ziptool ${DESTDIR}/$(INSTALL_BIN_DIR)
+	cd ${DESTDIR}/$(INSTALL_BIN_DIR); ln -sf ziptool jaztool
+	mkdir -p ${DESTDIR}/$(INSTALL_MAN_DIR)/man1
+	cp ziptool.1.gz ${DESTDIR}/$(INSTALL_MAN_DIR)/man1
+	cd ${DESTDIR}/$(INSTALL_MAN_DIR)/man1; ln -sf ziptool.1.gz jaztool.1.gz
 
 ziptool: ziptool.c
 	cc $(CFLAGS) -I$(LINUX_SRC_DIR)/include -o ziptool ziptool.c