--- shntool-3.0.7.orig/debian/copyright
+++ shntool-3.0.7/debian/copyright
@@ -0,0 +1,30 @@
+This package was debianized by Joshua Kwan <joshk@triplehelix.org> on
+Mon, 28 Mar 2005 15:56:21 -0800
+
+It was downloaded from:
+
+http://etree.org/shnutils/shntool/
+
+Upstream Author: Jason Jordan <shnutils@freeshell.org>
+
+Copyright:
+
+(C) 2000-2008 Jason Jordan
+
+   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 systems, the complete text of the GNU General Public License
+can be found in `/usr/share/common-licenses/GPL'.
+
--- shntool-3.0.7.orig/debian/rules
+++ shntool-3.0.7/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+# debian/rules for shntool
+# (C) 2003 Joshua Kwan <joshk@triplehelix.org>
+
+# 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)
+
+CFLAGS = -Wall -W -Wno-sign-compare -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif		
+
+export CFLAGS
+
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+crossflags := --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
+endif
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	./configure $(crossflags) --prefix=/usr --mandir=/usr/share/man
+	$(MAKE)
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	[ ! -f Makefile ] || $(MAKE) distclean
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/shntool
+	dh_installchangelogs
+	dh_installdocs README 
+
+binary-indep: 
+# Ye olde no-op.
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_compress
+	dh_link
+	dh_strip
+	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 
--- shntool-3.0.7.orig/debian/watch
+++ shntool-3.0.7/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://etree.org/shnutils/shntool/dist/src/shntool-(.*).tar.gz
--- shntool-3.0.7.orig/debian/changelog
+++ shntool-3.0.7/debian/changelog
@@ -0,0 +1,30 @@
+shntool (3.0.7-1) unstable; urgency=low
+
+  * New upstream release
+  * New maintainer (Closes: #460180)
+  * Added Homepage field to debian/control
+  * Added debian/watch file
+  * debian/copyright date updated
+
+ -- César Gómez Martín <cesar.gomez@gmail.com>  Sat, 05 Apr 2008 02:19:43 +0200
+
+shntool (3.0.6-1) unstable; urgency=low
+
+  * New upstream version.
+  * Bump Standards-Version to 3.7.3 - no changes.
+
+ -- Joshua Kwan <joshk@triplehelix.org>  Thu, 10 Jan 2008 21:26:02 -0800
+
+shntool (3.0.3-1) unstable; urgency=low
+
+  * New upstream major release, whoa! closes: #427809
+  * Respect CFLAGS, per Policy "should".
+  * Bump Standards-Version to 3.7.2 - no changes.
+
+ -- Joshua Kwan <joshk@triplehelix.org>  Fri, 08 Jun 2007 23:49:24 -0700
+
+shntool (2.0.3-1) unstable; urgency=low
+
+  * Initial release. (closes: #295767)
+
+ -- Joshua Kwan <joshk@triplehelix.org>  Sat, 17 Jul 2004 17:22:15 -0700
--- shntool-3.0.7.orig/debian/control
+++ shntool-3.0.7/debian/control
@@ -0,0 +1,25 @@
+Source: shntool
+Section: utils
+Priority: extra
+Maintainer: César Gómez Martín <cesar.gomez@gmail.com>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.7.3
+Homepage: http://etree.org/shnutils/shntool/
+
+Package: shntool
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: cuetools, sox, flac
+Description: multi-purpose tool for manipulating and analyzing WAV files
+ shntool is a multi-purpose WAVE data processing and reporting utility.
+ File formats are abstracted from its core, so it can process any file
+ that contains WAVE data, compressed or not - provided there exists a
+ format module to handle that particular file type.
+ .
+ shntool has native support for .wav files. If you want it to work with
+ other formats, you must have the appropriate helper program installed.
+ Some of these helper programs - notably for Monkey's Audio, wavpack, LPAC,
+ OptimFROG - are not (yet) available in Debian.
+ .
+ With the helper programs mentioned above, shntool is able to convert files
+ between all supported formats.
--- shntool-3.0.7.orig/debian/links
+++ shntool-3.0.7/debian/links
@@ -0,0 +1,12 @@
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shnstrip.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shninfo.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shnconv.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shncue.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shncmp.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shncat.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shnsplit.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shnjoin.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shnpad.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shnmd5.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shnfix.1.gz
+usr/share/man/man1/shntool.1.gz usr/share/man/man1/shnlen.1.gz
--- shntool-3.0.7.orig/debian/compat
+++ shntool-3.0.7/debian/compat
@@ -0,0 +1 @@
+4
