From: Dale Weiler <killfieldengine@gmail.com>
Date: Fri, 18 Jan 2013 00:45:35 +0000 (+0000)
Subject: Fix debian package building, now works.
X-Git-Tag: before-library~229
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=496aededb11fff56e998254d56e6876ca0980655;p=xonotic%2Fgmqcc.git

Fix debian package building, now works.
---

diff --git a/distro/deb/Makefile b/distro/deb/Makefile
index 5a00ec2..535cf1c 100644
--- a/distro/deb/Makefile
+++ b/distro/deb/Makefile
@@ -10,13 +10,12 @@ DEB     := $(DEBDIR).deb
 base:
 	$(MAKE) -C $(BASEDIR) DESTDIR=distro/deb/$(DEBDIR) PREFIX=$(PREFIX) install
 	@install -d -m755 $(DEBDIR)/DEBIAN
-	@cp       control $(DEBDIR)/DEBIAN/
-	@tar czf data.tar.gz $(DEBDIR)/[a-z]*
-	@tar czf control.tar.gz $(DEBDIR)/DEBIAN/*
+	@cp       control $(DEBDIR)/DEBIAN/control
+	@tar czf data.tar.gz -C $(DEBDIR)/ . --exclude=DEBIAN
+	@tar czf control.tar.gz -C $(DEBDIR)/DEBIAN/ .
 	@echo 2.0 > debian-binary
 	@ar r $(DEB) debian-binary control.tar.gz data.tar.gz
-	@rm -rf $(DEBDIR) debian-binary control.tar.gz data.tar.gz
-
+	@rm -rf debian-binary control.tar.gz data.tar.gz $(DEBDIR)
 clean:
 	@rm -f $(DEB)
 
diff --git a/distro/deb/control b/distro/deb/control
index 74cb372..57cde3a 100644
--- a/distro/deb/control
+++ b/distro/deb/control
@@ -1,7 +1,13 @@
 Package: gmqcc
 Version: 0.3.0
-Section: user/hidden 
+Section: user/hidden
 Priority: optional
-Architecture: any
+Architecture: i386
 Installed-Size: `du -ks usr|cut -f 1`
-Maintainer: <killfieldengine@gmail.com>
+Maintainer: Dale Weiler <killfieldengine@gmail.com>
+Description: An improved Quake C Compiler
+   For an enduring period of time the options for a decent compiler for the Quake C programming language
+   were confined to a specific compiler known as QCC. Attempts were made to extend and improve upon the
+   design of QCC, but many foreseen the consequences of building on a broken foundation. The solution
+   was obvious, a new compiler; one born from the NIH realm of sarcastic wit. We welcome you. You won't
+   find a better Quake C compiler.