--- libticonv-1.1.0.orig/debian/rules
+++ libticonv-1.1.0/debian/rules
@@ -0,0 +1,91 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+        INSTALL_PROGRAM += -s
+endif
+
+autotools: autotools-stamp
+autotools-stamp:
+	rm -f config.sub config.guess
+	ln -s /usr/share/misc/config.sub config.sub
+	ln -s /usr/share/misc/config.guess config.guess
+	touch autotools-stamp
+
+config.status: autotools-stamp configure
+	dh_testdir
+	# Add here commands to configure the package.
+	touch configure.ac && touch aclocal.m4 && touch configure
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+		--prefix=/usr --mandir=\$${prefix}/share/man \
+		--infodir=\$${prefix}/share/info \
+		CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+build: build-stamp
+build-stamp:  config.status
+	dh_testdir
+	# Add here commands to compile the package.
+	$(MAKE)
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f autotools-stamp build-stamp
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f config.sub config.guess
+	cd docs/html && rm -f api.html charset.c.html filename.c.html \
+	ticonv.c.html ticonv.h.html tokens.c.html
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	# Add here commands to install the package into debian/tmp
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_install --sourcedir=debian/tmp
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- libticonv-1.1.0.orig/debian/docs
+++ libticonv-1.1.0/debian/docs
@@ -0,0 +1,2 @@
+AUTHORS
+README
--- libticonv-1.1.0.orig/debian/control
+++ libticonv-1.1.0/debian/control
@@ -0,0 +1,30 @@
+Source: libticonv
+Priority: optional
+Section: libs
+Maintainer: Krzysztof Burghardt <krzysztof@burghardt.pl>
+Build-Depends: debhelper (>> 5), pkg-config, libglib2.0-dev, tfdocgen, autotools-dev
+Standards-Version: 3.8.1
+Homepage: http://lpg.ticalc.org/prj_tilp/
+
+Package: libticonv-dev
+Section: libdevel
+Architecture: any
+Depends: libticonv3 (= ${binary:Version}), pkg-config, libglib2.0-dev
+Description: Texas Instruments calculators charsets library [development files]
+ The libticonv is a library providing support for operations on Texas 
+ Instruments calculators charsets. All charsets for all calculators are 
+ supported; the library is also able to convert to/from UTF-8/UTF-16.
+ .
+ This package provides the development files for the library, static library, 
+ required headers and documentation.
+
+Package: libticonv3
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Texas Instruments calculators charsets library
+ The libticonv is a library providing support for operations on Texas
+ Instruments calculators charsets. All charsets for all calculators are 
+ supported; the library is also able to convert from/to UTF-8/UTF-16.
+ .
+ This package provides the shared library.
--- libticonv-1.1.0.orig/debian/libticonv3.install
+++ libticonv-1.1.0/debian/libticonv3.install
@@ -0,0 +1,2 @@
+usr/lib/lib*.so.*
+
--- libticonv-1.1.0.orig/debian/compat
+++ libticonv-1.1.0/debian/compat
@@ -0,0 +1 @@
+5
--- libticonv-1.1.0.orig/debian/copyright
+++ libticonv-1.1.0/debian/copyright
@@ -0,0 +1,16 @@
+This package was created by Romain LIEVIN <roms@tilp.info> on
+Sun, 14 Jul 2002 11:58:51 +0200.
+
+It was downloaded from
+    http://sourceforge.net/project/showfiles.php?group_id=18378
+
+Upstream Author: Romain LIEVIN <roms@tilp.info>
+
+Copyright:
+
+This software is copyright (c) 2007 by Romain LIEVIN.
+
+You are free to distribute this software under the terms of the GNU Lesser
+General Public License.
+On Debian systems, the complete text of the GNU Lesser General Public License
+can be found in /usr/share/common-licenses/LGPL file.
--- libticonv-1.1.0.orig/debian/changelog
+++ libticonv-1.1.0/debian/changelog
@@ -0,0 +1,5 @@
+libticonv (1.1.0-1) unstable; urgency=low
+
+  * Initial release. (Closes: #503103)
+
+ -- Krzysztof Burghardt <krzysztof@burghardt.pl>  Sun, 24 May 2009 21:28:58 +0200
--- libticonv-1.1.0.orig/debian/libticonv-dev.install
+++ libticonv-1.1.0/debian/libticonv-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+#usr/lib/lib*.a
+usr/lib/lib*.so
+usr/lib/pkgconfig/*
--- libticonv-1.1.0.orig/debian/libticonv-dev.docs
+++ libticonv-1.1.0/debian/libticonv-dev.docs
@@ -0,0 +1,2 @@
+docs/charsets
+docs/html
--- libticonv-1.1.0.orig/debian/libticonv-dev.dirs
+++ libticonv-1.1.0/debian/libticonv-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib/pkgconfig
+
