--- efte-1.1.orig/debian/rules
+++ efte-1.1/debian/rules
@@ -0,0 +1,59 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+
+builddir/Makefile:
+	dh_testdir
+	mkdir -p builddir
+	cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_LD_FLAGS="-Wl,-z,defs" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" -DCMAKE_SKIP_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=ON
+
+build: build-stamp
+
+build-stamp:  builddir/Makefile $(QUILT_STAMPFN)
+	dh_testdir
+	$(MAKE) -C builddir
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	rm -rf builddir
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep  
+	dh_installdirs
+	$(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/efte install
+	rm $(CURDIR)/debian/efte/usr/share/doc/efte/COPYING
+	rm $(CURDIR)/debian/efte/usr/share/doc/efte/Artistic
+
+binary-indep: install
+# We have nothing to do by default.
+
+binary-arch: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+	dh_install
+	dh_installman $(CURDIR)/packaging/debian/efte.1
+	dh_link usr/share/man/man1/efte.1.gz usr/share/man/man1/nefte.1.gz
+	dh_link usr/share/man/man1/efte.1.gz usr/share/man/man1/vefte.1.gz
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- efte-1.1.orig/debian/copyright
+++ efte-1.1/debian/copyright
@@ -0,0 +1,56 @@
+This package was debianized by Xavier Oswald <xoswald@debian.org> on
+Sun, 23 Aug 2009 20:41:07 +0200.
+
+It was downloaded from http://sourceforge.net/projects/efte
+Original URL: http://fte.sourceforge.net
+
+Upstream Author:
+    Jeremy Cowgar <jeremy_c@users.sourceforge.net>
+    Lauri Nurmi <lanurmi@users.sourceforge.net>
+
+Original Author: 
+    Marko Macek <Marko.Macek@gmx.net>
+
+FTE Contributors:
+    F.Jalvingh
+    Markus F.X.J. Oberhumer
+    Martin Frydl
+    S.Pinigin
+    Don Mahurin
+    Lothar Schmidt
+    Timo Sirainen 
+
+Copyright:
+    Copyright (c) 2008-2009 eFTE SF Group (see Upstream Authors)
+    Copyright (c) 2000-2006 Others
+    Copyright (c) 1994-1998 Marko Macek
+    Copyright (c) 1998      István Váradi
+    Copyright (c) 1998      Zdenek Kabelac
+    Copyright (c) 2008      Lauri Nurmi
+
+The Debian packaging is:
+    Copyright (C) 2009 Xavier Oswald <xoswald@debian.org>
+    and is licensed under the GPL version 3, 
+    see `/usr/share/common-licenses/GPL-3'.
+   
+License:
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of either:
+
+        a) the GNU General Public License as published by the Free
+           Software Foundation; either version 2, or (at your option) any
+           later version, or
+
+        b) the "Artistic License" which comes with this Kit.
+
+    This program 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 either
+    the GNU General Public License or the Artistic License for more details.
+
+    You should have received a copy of the Artistic License with this
+    Kit, in the file named "Artistic".  If not, I'll be glad to provide one.
+
+    You should also have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software Foundation,
+    Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
--- efte-1.1.orig/debian/changelog
+++ efte-1.1/debian/changelog
@@ -0,0 +1,5 @@
+efte (1.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #506757)
+
+ -- Xavier Oswald <xoswald@debian.org>  Sun, 23 Aug 2009 20:41:07 +0200
--- efte-1.1.orig/debian/README.source
+++ efte-1.1/debian/README.source
@@ -0,0 +1,5 @@
+This package uses quilt to manage all modifications to the upstream source.
+Changes are stored in the source package as diffs in debian/patches and
+applied during the build.
+
+See /usr/share/doc/quilt/README.source for a detailed explanation.
--- efte-1.1.orig/debian/docs
+++ efte-1.1/debian/docs
@@ -0,0 +1,2 @@
+CMakeLists.txt
+README
--- efte-1.1.orig/debian/compat
+++ efte-1.1/debian/compat
@@ -0,0 +1 @@
+7
--- efte-1.1.orig/debian/control
+++ efte-1.1/debian/control
@@ -0,0 +1,20 @@
+Source: efte
+Section: editors
+Priority: extra
+Maintainer: Xavier Oswald <xoswald@debian.org>
+Build-Depends: debhelper (>= 7), cmake, libxpm-dev, libncurses5-dev, quilt
+Standards-Version: 3.8.3
+Homepage: http://efte.cowgar.com
+
+Package: efte
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Advanced lightweight configurable editor 
+ eFTE is an advanced programmers editor with goals of being lightweight, yet
+ totally configurable.  Support for user defined programming languages, menu
+ systems and key bindings are provided with many common defaults already
+ defined.
+ .
+ eFTE is still a new project, however, extended from the FTE editor which was
+ first released in 1995, so eFTE is tried and true with many features for the
+ programmer/text editor. 
--- efte-1.1.orig/debian/watch
+++ efte-1.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/efte/efte-(.*)\.tar\.gz
--- efte-1.1.orig/debian/dirs
+++ efte-1.1/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- efte-1.1.orig/debian/patches/remove_template.patch
+++ efte-1.1/debian/patches/remove_template.patch
@@ -0,0 +1,12 @@
+# Remove uneeded copyright template
+# Author: Xavier Oswald <xoswald@debian.org>
+--- a/src/cocoa.mm
++++ b/src/cocoa.mm
+@@ -3,7 +3,6 @@
+ //  fte
+ //
+ //  Created by Lauri Nurmi on 5.1.2008.
+-//  Copyright __MyCompanyName__ 2008. All rights reserved.
+ //
+ 
+ #import <Cocoa/Cocoa.h>
--- efte-1.1.orig/debian/patches/series
+++ efte-1.1/debian/patches/series
@@ -0,0 +1 @@
+remove_template.patch
