--- s51dude-0.2.0.orig/Makefile
+++ s51dude-0.2.0/Makefile
@@ -3,7 +3,7 @@
 CFLAGS = -Wall -O2
 OBJECTS = s51dude.o ihex.o usbtiny.o parse_params.o parts.o
 INCLUDES = ihex.h parts.h s51dude.h usbtiny.h
-LDFLAGS = -lusb -Wl
+LDFLAGS = -lusb
 
 # prefix for installing the binaries
 DESTDIR=
--- s51dude-0.2.0.orig/debian/dirs
+++ s51dude-0.2.0/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- s51dude-0.2.0.orig/debian/rules
+++ s51dude-0.2.0/debian/rules
@@ -0,0 +1,53 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O2
+endif
+
+build: build-stamp
+
+build-stamp:   
+	dh_testdir
+	$(MAKE) PREFIX=/usr CFLAGS="$(CFLAGS)"
+	touch $@
+
+clean: 
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	$(MAKE) clean
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/debian/s51dude PREFIX=/usr install
+
+binary-indep: build install
+# We have nothing to do by default.
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+	dh_strip
+	dh_compress --exclude=hex
+	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
--- s51dude-0.2.0.orig/debian/watch
+++ s51dude-0.2.0/debian/watch
@@ -0,0 +1,10 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webserver directory
+http://s51dude.gforge.lug.fi.uba.ar/files/s51dude-(.*)\.tar\.gz
--- s51dude-0.2.0.orig/debian/compat
+++ s51dude-0.2.0/debian/compat
@@ -0,0 +1 @@
+7
--- s51dude-0.2.0.orig/debian/control
+++ s51dude-0.2.0/debian/control
@@ -0,0 +1,14 @@
+Source: s51dude
+Section: electronics
+Priority: extra
+Maintainer: Lucas Chiesa <lucas.chiesa@gmail.com>
+Build-Depends: debhelper (>= 7), libusb-dev
+Standards-Version: 3.8.0
+Homepage: http://s51dude.gforge.lug.fi.uba.ar/
+
+Package: s51dude
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: In-System Programmer for 8051 MCUs using usbtiny
+ In-System programmer for Atmel's 8051 MCUs like the AT89S8252 and AT89S53.
+ It needs the usbtinyisp board with a modified firmware.
--- s51dude-0.2.0.orig/debian/docs
+++ s51dude-0.2.0/debian/docs
@@ -0,0 +1 @@
+README
--- s51dude-0.2.0.orig/debian/changelog
+++ s51dude-0.2.0/debian/changelog
@@ -0,0 +1,34 @@
+s51dude (0.2.0-1.5.201411020604) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. The following patches have been applied to the original source package
+    0001-bump-version-for-ucs400
+
+ -- Univention builddaemon <buildd@univention.de>  Sun, 02 Nov 2014 06:04:03 +0100
+
+s51dude (0.2.0-1) unstable; urgency=low
+
+  * Bump version, otherwise the build stamp in UCS 3.2 is higher than the 4.0
+    build (Bug #35387)
+
+ -- Sönke Schwardt-Krummrich <schwardt@univention.de>  Fri, 30 Oct 2014 14:43:23 +0200
+
+s51dude (0.2.0-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "ftbfs with GCC-4.7": apply patch from Paul Tagliamonte (stray -Wl in
+    Makefile). Closes: #667365
+
+ -- gregor herrmann <gregoa@debian.org>  Sat, 21 Apr 2012 12:35:58 +0200
+
+s51dude (0.2.0-1) unstable; urgency=low
+
+  * New upstream release 
+
+ -- Lucas Chiesa <lucas.chiesa@gmail.com>  Mon, 13 Oct 2008 02:31:16 +0000
+
+s51dude (0.1.3-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Lucas Chiesa <lucas.chiesa@gmail.com>  Fri, 15 Aug 2008 00:20:55 +0000
+
--- s51dude-0.2.0.orig/debian/examples
+++ s51dude-0.2.0/debian/examples
@@ -0,0 +1 @@
+hex/*
--- s51dude-0.2.0.orig/debian/copyright
+++ s51dude-0.2.0/debian/copyright
@@ -0,0 +1,29 @@
+This package was debianized by Lucas Chiesa <lucas.chiesa@gmail.com> on
+Fri, 15 Aug 2008 00:20:55 +0000.
+
+It was downloaded from http://tulku.com.ar/~tulku/s51dude
+
+Upstream Authors:
+
+    Lucas Chiesa
+    Gabriel Gavinowich
+    Joaquin de Andres
+
+Copyright:
+    
+    ihex.h, ihex.c:
+    Copyright (C) 2006 Vanya A. Sergeev
+    Public Domain
+
+    usbtiny.c, usbtiny.h:
+    Copyright (C) 2007 Dick Streefland, adapted for 5.4 by Limor Fried
+    GNU General Public License, version 2 of the License, or (at your option)
+    any later version.
+
+    s51dude.c, s51dude.h, parse_params.c, parts.c, parts.h
+    Copyright (C) 2008 Lucas Chiesa
+    GNU General Public License, version 2 of the License, or (at your option)
+    any later version.
+
+The Debian packaging is (C) 2008, Lucas Chiesa <lucas.chiesa@gmail.com> and
+is licensed under the GPLv2 or later, see `/usr/share/common-licenses/GPL-2'.
