--- tpp-1.3.1.orig/debian/control
+++ tpp-1.3.1/debian/control
@@ -0,0 +1,20 @@
+Source: tpp
+Section: graphics
+Priority: optional
+Maintainer: Nico Golde <nion@debian.org>
+Build-Depends: debhelper (>= 5), dpatch (>=1.11)
+Standards-Version: 3.7.3
+Homepage: http://www.ngolde.de/tpp/
+
+Package: tpp
+Architecture: all
+Depends: ruby (>=1.8.0-1), libncurses-ruby1.8
+Suggests: figlet, texpower
+Description: text presentation program
+ Tpp stands for text presentation program and is an ncurses-based presentation
+ tool. The presentation can be written with your favorite editor in a simple
+ description format and then shown on any text terminal that is supported by
+ ncurses - ranging from an old VT100 to the Linux framebuffer to an xterm.
+ .
+ It supports color, LaTeX output of presentation, sliding in text,
+ a command prompt and additional cool features.
--- tpp-1.3.1.orig/debian/compat
+++ tpp-1.3.1/debian/compat
@@ -0,0 +1 @@
+5
--- tpp-1.3.1.orig/debian/changelog
+++ tpp-1.3.1/debian/changelog
@@ -0,0 +1,76 @@
+tpp (1.3.1-2) unstable; urgency=low
+
+  * Make use of the new Homepage control field instead of the tag.
+  * Bump Standards-Version, no changes needed.
+  * Fixing debian-rules-ignores-make-clean-error, remove make clean
+    call as it is not needed.
+  * Clean up copyright file, include the complete GPL preamble.
+  * Removed binary-indep rule in rules cause it is not needed.
+
+ -- Nico Golde <nion@debian.org>  Tue, 11 Dec 2007 08:22:35 +0100
+
+tpp (1.3.1-1) unstable; urgency=low
+
+  * New upstream release (Closes: #320302).
+  * Added compat file and removed DH_COMPAT from rules.
+  * Removed shelloutput patch, included upstream.
+  * Added new years to copyright.
+
+ -- Nico Golde <nion@debian.org>  Mon, 23 Apr 2007 10:59:52 +0200
+
+tpp (1.3-2) unstable; urgency=low
+
+  * Added patch by Gregor Herrmann to make a better
+    shelloutput (Closes: #407194).
+  * Changed maintainer address.
+  * Bumped compat level to 5.
+  * Conforms to Standards version 3.7.2.
+  * Added a space in front of Homepage in control.
+
+ -- Nico Golde <nion@debian.org>  Wed, 28 Mar 2007 10:22:29 +0200
+
+tpp (1.3-1) unstable; urgency=low
+
+  * new upstream release.
+  * removed menu file because tpp needs an argument and it makes no sense
+
+  * Upload sponsored by Norbert Tretkowski <nobse@debian.org>
+
+ -- Nico Golde <nico@ngolde.de>  Thu, 23 Jun 2005 14:56:42 +0200
+
+tpp (1.2-2) unstable; urgency=low
+
+  * fixed typo in Suggests field. 
+
+ -- Nico Golde <nico@ngolde.de>  Sun,  6 Mar 2005 10:52:23 +0100
+
+tpp (1.2-1) unstable; urgency=low
+
+  * new upstream release. 
+  * changed arch, deleted watch file.
+
+ -- Nico Golde <nico@ngolde.de>  Thu,  3 Mar 2005 17:05:14 +0100
+
+tpp (1.1.1-1) unstable; urgency=low
+
+  * new upstream release
+  * added possibility of changing huge fonts (Closes: #272647)
+
+ -- Nico Golde <nico@ngolde.de>  Wed, 13 Oct 2004 13:20:16 +0200
+
+tpp (1.0-1) unstable; urgency=low
+
+  * New upstream release.
+  * removed debian/tpp.1 upstream manual is now available.
+  * removed Co-Maintainer.
+  * removed examples/ac-am.tpp from compression.
+  * added Homepage to control.
+
+ -- Nico Golde <nico@ngolde.de>  Sun, 15 Aug 2004 15:41:01 +0200
+
+tpp (0.2-1) unstable; urgency=low
+
+  * Initial Release (Closes: #262259).
+
+ -- Nico Golde <nico@ngolde.de>  Sat, 31 Jul 2004 01:54:52 +0200
+
--- tpp-1.3.1.orig/debian/patches/00list
+++ tpp-1.3.1/debian/patches/00list
@@ -0,0 +1,2 @@
+make
+man
--- tpp-1.3.1.orig/debian/patches/man.dpatch
+++ tpp-1.3.1/debian/patches/man.dpatch
@@ -0,0 +1,65 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## man.dpatch by Nico Golde <nico@ngolde.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad tpp-1.3.1~/doc/tpp.1 tpp-1.3.1/doc/tpp.1
+--- tpp-1.3.1~/doc/tpp.1	2007-04-23 11:12:21.000000000 +0200
++++ tpp-1.3.1/doc/tpp.1	2007-12-11 08:41:23.000000000 +0100
+@@ -1,6 +1,6 @@
+ .TH  TPP "1" "April 2007" "tpp 1.3.1" "User Commands"
+ .SH NAME
+-TPP - Text Presentation Program
++TPP \- Text Presentation Program
+ .SH SYNOPSIS
+ .B tpp  
+ <\fIOPTIONS\fR> <\fIFILE\fR>
+@@ -16,21 +16,21 @@
+ LaTeX conversion and more.
+ .SH OPTIONS
+ .TP
+--h/--help display help
++\-h/\-\-help display help
+ .TP
+--l output.tex input.tpp converts tpp slides into tex 
++\-l output.tex input.tpp converts tpp slides into tex 
+ .TP
+--v/--version display version number
++\-v/\-\-version display version number
+ 
+ .SH KEYS
+ .TP
+ space
+ display next entry within page
+ .TP
+-space, cursor-down, cursor-right
++space, cursor\-down, cursor\-right
+ display next page
+ .TP
+-b, cursor-up, cursor-left 
++b, cursor\-up, cursor\-left 
+ display previous page
+ .TP
+ q, Q 
+@@ -50,16 +50,16 @@
+ .PP
+ .SH WRITING PRESENTATIONS 
+ The tpp presentation formats consists of normal text lines and special
+-commands. Special commands are contained in lines that begin with "--"
++commands. Special commands are contained in lines that begin with "\-\-"
+ and the command name.
+ 
+-See /usr/share/doc/tpp/README for complete list of command names, and 
++See /usr/share/doc/tpp/README.gz for complete list of command names, and 
+ /usr/share/doc/tpp/examples for TPP presentation examples, including
+ presentation slides that have been in real-life presentations.
+ 
+ .SH VIM SYNTAX FILE
+ In /usr/share/doc/tpp/contrib you'll find a syntax file for the vim editor.
+-See /usr/share/doc/tpp/README for installation instructions.
++See /usr/share/doc/tpp/README.gz for installation instructions.
+ 
+ .SH AUTHOR CONTACT 
+ Tpp was written by Nico Golde <nico@ngolde.de> and Andreas Krennmair <ak@synflood.at>
--- tpp-1.3.1.orig/debian/patches/make.dpatch
+++ tpp-1.3.1/debian/patches/make.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## make.dpatch by Nico Golde <nion@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad tpp-1.3.1~/Makefile tpp-1.3.1/Makefile
+--- tpp-1.3.1~/Makefile	2005-06-12 13:37:20.000000000 +0200
++++ tpp-1.3.1/Makefile	2007-04-23 11:24:33.000000000 +0200
+@@ -13,7 +13,7 @@
+ 
+ install :
+ 	mkdir -p $(DOCPATH)	
+-	install -m644 DESIGN CHANGES COPYING README THANKS $(DOCPATH)	
++	install -m644 DESIGN README THANKS $(DOCPATH)	
+ 	install -m644 doc/tpp.1 $(MANPATH)
+ 	install tpp.rb $(INSPATH)$(BIN)		
+ 	mkdir -p $(DOCPATH)/contrib
--- tpp-1.3.1.orig/debian/copyright
+++ tpp-1.3.1/debian/copyright
@@ -0,0 +1,25 @@
+This package was debianized by Nico Golde <nion@debian.org> on
+Thu,  3 Mar 2005 17:05:14 +0100
+
+It was downloaded from http://www.ngolde.de/tpp/
+
+Upstream Authors: Nico Golde <nico@ngolde.de>, Andreas Krennmair <ak@synflood.at>
+
+This software is copyrighted (c) 2004,2005,2007 by Nico Golde and Andreas Krennmair.
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; version 2 dated June, 1991.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software Foundation,
+   Inc., 51 Franklin St, Fifth Floor, Boston,
+   MA 02110-1301, USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
--- tpp-1.3.1.orig/debian/rules
+++ tpp-1.3.1/debian/rules
@@ -0,0 +1,46 @@
+#!/usr/bin/make -f
+include /usr/share/dpatch/dpatch.make
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	touch configure-stamp
+
+build: build-stamp patch
+
+build-stamp: configure-stamp 
+	dh_testdir
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	$(MAKE) install prefix=$(CURDIR)/debian/tpp/usr
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples examples/*
+	dh_installchangelogs CHANGES
+	dh_installmenu
+	dh_strip
+	dh_compress -X examples/ac-am.tpp
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep
+.PHONY: build clean binary-indep binary install configure patch unpatch
--- tpp-1.3.1.orig/debian/dirs
+++ tpp-1.3.1/debian/dirs
@@ -0,0 +1,3 @@
+usr/bin
+usr/share/doc/tpp
+usr/share/man/man1
