--- lua-markdown-0.32.orig/debian/Makefile.Debian.conf
+++ lua-markdown-0.32/debian/Makefile.Debian.conf
@@ -0,0 +1,46 @@
+### $Id: Makefile.Debian.conf.sample 399 2007-07-21 09:59:16Z gareuselesinge $
+
+### mandatory fields
+PKG_NAME=markdown
+
+### things relative to the C library part
+CLIB_CFLAGS=
+CLIB_LDFLAGS=
+CLIB_OBJS=
+VERSION_INFO=0:0:0
+LUA_MODNAME_CPART=
+
+### things relative to the lua library part
+LUA_HEADER=
+LUA_SOURCES=markdown.lua
+LUA_MODNAME=
+LUA_TEST=markdown-tests.lua
+
+### this part is relative to pkg-config
+PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1)
+PKG_LIBS_PRIVATE=
+PKG_URL=
+PKG_REQUIRES=
+PKG_CONFLICTS=
+
+### this part is relative to debian libs naming policy
+DEB_EXTRA_DASH=
+
+### In addition, to gather flexibility, you can set these hooks
+### (called in this order)
+pre-all-hook::
+	lua5.1 -e 'print(string.sub(string.match(io.open("markdown.lua"):read("*a"), "%-%-(%b[])"),5,-4))'>\
+		MANUAL
+	chmod a-x *lua
+post-all-hook::
+pre-test-hook::
+pre-lua-dynamic-test-hook::
+pre-dynamic-link-hook::
+pre-app-dynamic-test-hook::
+pre-static-link-hook::
+pre-app-static-test-hook::
+pre-install-hook::
+post-install-hook::
+pre-clean-hook::
+post-clean-hook::
+	rm -f MANUAL
--- lua-markdown-0.32.orig/debian/changelog
+++ lua-markdown-0.32/debian/changelog
@@ -0,0 +1,37 @@
+lua-markdown (0.32-2) unstable; urgency=low
+
+  * bumped standards-version to 3.8.2, no changes
+  * build-depend on lua5.1-policy-dev >= 22
+
+ -- Enrico Tassi <gareuselesinge@debian.org>  Tue, 21 Jul 2009 15:58:08 +0200
+
+lua-markdown (0.32-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Enrico Tassi <gareuselesinge@debian.org>  Sat, 31 May 2008 18:24:39 +0200
+
+lua-markdown (0.31-1) unstable; urgency=low
+
+  * new upstream release
+  * fixed typo in control file
+
+ -- Enrico Tassi <gareuselesinge@debian.org>  Mon, 25 Feb 2008 09:22:05 +0100
+
+lua-markdown (0.30-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Enrico Tassi <gareuselesinge@debian.org>  Mon, 25 Feb 2008 09:18:13 +0100
+
+lua-markdown (0.29-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Enrico Tassi <gareuselesinge@debian.org>  Sat, 26 Jan 2008 19:08:01 +0100
+
+lua-markdown (0.13-1) unstable; urgency=low
+
+  * Initial release. (Closes: #462660)
+
+ -- Enrico Tassi <gareuselesinge@debian.org>  Sat, 26 Jan 2008 18:34:40 +0100
--- lua-markdown-0.32.orig/debian/watch
+++ lua-markdown-0.32/debian/watch
@@ -0,0 +1,5 @@
+# test this watch file using:
+# uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-markdown
+#
+version=3
+http://luaforge.net/frs/?group_id=188  /frs/download.php/\d+/markdown-([\d\.]*).tar.gz
--- lua-markdown-0.32.orig/debian/copyright
+++ lua-markdown-0.32/debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by Enrico Tassi <gareuselesinge@debian.org>
+on Thu Dec 27 16:00:05 CET 2007
+
+This software was downloaded from http://luaforge.net/projects/markdown
+
+Copyright 2006 Niklas Frykholm.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this
+software and associated documentation files (the "Software"), to deal in the Software
+without restriction, including without limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
+to whom the Software is furnished to do so, subject to the following conditions: 
+
+The above copyright notice and this permission notice shall be included in all copies
+or substantial portions of the Software. 
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
--- lua-markdown-0.32.orig/debian/rules
+++ lua-markdown-0.32/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+DEB_DESTDIR:=$(shell pwd)/debian/tmp
+include /usr/share/cdbs/1/class/lua.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
--- lua-markdown-0.32.orig/debian/liblua5.1-markdown0.docs
+++ lua-markdown-0.32/debian/liblua5.1-markdown0.docs
@@ -0,0 +1 @@
+MANUAL
--- lua-markdown-0.32.orig/debian/control
+++ lua-markdown-0.32/debian/control
@@ -0,0 +1,19 @@
+Source: lua-markdown
+Section: interpreters
+Priority: optional
+Maintainer: Enrico Tassi <gareuselesinge@debian.org>
+Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5), lua5.1-policy-dev (>= 22), dpatch
+Standards-Version: 3.8.2
+Vcs-Svn: svn://svn.debian.org/pkg-lua/packages/lua-markdown
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-lua/packages/lua-markdown
+Homepage: http://luaforge.net/projects/markdown
+
+Package: liblua5.1-markdown0
+Architecture: all
+Depends: ${shlibs:Depends}
+Description: A pure lua5.1 implementation of the Markdown text-to-html markup
+ This package contains markdown, a Lua library to translate the markdown syntax
+ to HTML.
+ .
+ This package also contains the documentation.
+
--- lua-markdown-0.32.orig/debian/patches/00dpatch.conf
+++ lua-markdown-0.32/debian/patches/00dpatch.conf
@@ -0,0 +1,2 @@
+conf_debianonly=1
+conf_origtargzpath=../tarballs/
--- lua-markdown-0.32.orig/debian/patches/remove_sheebang.dpatch
+++ lua-markdown-0.32/debian/patches/remove_sheebang.dpatch
@@ -0,0 +1,15 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## remove_sheebang.dpatch by Enrico Tassi <gareuselesinge@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: no support for the command line markdown
+
+@DPATCH@
+diff -urNad trunk~/markdown.lua trunk/markdown.lua
+--- trunk~/markdown.lua	2008-01-26 18:29:59.000000000 +0100
++++ trunk/markdown.lua	2008-01-26 18:29:59.000000000 +0100
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env lua
+ 
+ --[[
+ # markdown.lua -- version 0.13
--- lua-markdown-0.32.orig/debian/patches/00list
+++ lua-markdown-0.32/debian/patches/00list
@@ -0,0 +1 @@
+remove_sheebang.dpatch
