--- gcstar-1.5.0.orig/debian/menu
+++ gcstar-1.5.0/debian/menu
@@ -0,0 +1,8 @@
+?package(gcstar):needs="X11" \
+  section="Applications/Data Management" \
+  hints="Gnome" \
+  title="GCstar" \
+  longtitle="Personal Collections Manager" \
+  command="/usr/bin/gcstar" \
+  icon="/usr/share/pixmaps/gcstar_logo.xpm"
+
--- gcstar-1.5.0.orig/debian/copyright
+++ gcstar-1.5.0/debian/copyright
@@ -0,0 +1,27 @@
+This package was debianized by Alexander Wirt <formorer@debian.org> on
+Sat,  14 Okt 2006 10:26:18 +0200.
+
+It was downloaded from http://download.gna.org/gcstar/
+
+Copyright Holder: © 2005-2009 Tian <tian@c-sait.net>
+
+License:
+
+   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; either version 2 of the License, or
+   (at your option) any later version.
+
+   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'.
+
--- gcstar-1.5.0.orig/debian/docs
+++ gcstar-1.5.0/debian/docs
@@ -0,0 +1,3 @@
+README
+README.fr
+CHANGELOG.fr
--- gcstar-1.5.0.orig/debian/gcstar.lintian-overrides
+++ gcstar-1.5.0/debian/gcstar.lintian-overrides
@@ -0,0 +1,2 @@
+gcstar: script-not-executable ./usr/share/gcstar/helpers/xdg-open
+gcstar: script-not-executable ./usr/share/gcstar/xslt/applyXSLT.pl
--- gcstar-1.5.0.orig/debian/watch
+++ gcstar-1.5.0/debian/watch
@@ -0,0 +1,22 @@
+# 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 Webpage 
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php gcstar-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+http://download.gna.org/gcstar/gcstar-([\d\.]+)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/gcstar-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to use Roland's hack for sourceforge based projects - YMMV!
+#http://people.debian.org/~lolando/sfdlr.php?project=gcstar gcstar-([\d.]*).tar.gz
+
+
--- gcstar-1.5.0.orig/debian/changelog
+++ gcstar-1.5.0/debian/changelog
@@ -0,0 +1,134 @@
+gcstar (1.5.0-1) unstable; urgency=low
+
+  * New upstream release
+    - Renaming of items is fixed (Closes: #356605) 
+  * Bump standards version
+  * Remove dh_desktop, dh_clean -k 
+  * Add dh_lintian 
+  * Add README.source
+  * Take sure the package is source 1.0 in the future
+  * Integrate the packaging suggestions from Nyall Dawson (Closes: #549676)
+    Thanks!
+
+ -- Alexander Wirt <formorer@debian.org>  Sun, 22 Nov 2009 09:14:23 +0100
+
+gcstar (1.4.3-2) unstable; urgency=low
+
+  * Add a fix for crashes in GCGraphicComponents.pm
+    (Closes: #530821). Thanks rto David Weinehall for grabbing the patch
+
+ -- Alexander Wirt <formorer@debian.org>  Sat, 13 Jun 2009 09:33:59 +0200
+
+gcstar (1.4.3-1) unstable; urgency=low
+
+  [ Clément Hermann ]
+  * New upstream release (Closes: #484629, #491545, #507100)
+  * remove 10-fix-storable-crash.dpatch (fixed upstream)
+  * adapt 01-set_usr_lib.dpatch
+  * adapt 07_fix_manpath.dpatch
+  * add 11_fix_allocine_plugin.dpatch: 
+    updated GCAllocine.pm module from upstream SVN 
+
+  [ Alexander Wirt ]
+  * Bump standards version 
+  * Update copyright file 
+  * Call dh_desktop from rules file 
+
+ -- Alexander Wirt <formorer@debian.org>  Sun, 22 Mar 2009 11:46:48 +0100
+
+gcstar (1.3.2-2) unstable; urgency=low
+
+  * Really activate 10-fix-storable-crash.dpatch this time.  
+
+ -- Alexander Wirt <formorer@debian.org>  Mon, 12 Jan 2009 22:22:47 +0100
+
+gcstar (1.3.2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Backport Storage:::forgive_me change from new upstream version
+    to prevent Gcstar freeze when trying to retrieve data from a
+    website (Closes: #510685)
+
+ -- Neil Williams <codehelp@debian.org>  Sun, 04 Jan 2009 15:44:40 +0000
+
+gcstar (1.3.2-1) unstable; urgency=low
+
+  * New upstream version
+  * Add Homepage to control file
+  * Dump debhelper compat to 5 (Closes: #451035)
+
+ -- Alexander Wirt <formorer@debian.org>  Sat, 26 Jan 2008 22:09:02 +0100
+
+gcstar (1.3.1-1) unstable; urgency=low
+
+  * New upstream version (Closes: #452032)
+  * Removed 08_fix_desktop_file (adopted by upstream)
+  * Bumpd standards version
+
+ -- Alexander Wirt <formorer@debian.org>  Tue, 11 Dec 2007 13:35:52 +0100
+
+gcstar (1.2.2-1) unstable; urgency=low
+
+  * Update menu icon 
+  * New upstream release
+  * Backported desktop file from cvs
+  * Removed 05_fix_xml_enoding (fixed upstream) 
+
+ -- Alexander Wirt <formorer@debian.org>  Fri, 21 Sep 2007 13:59:27 +0200
+
+gcstar (1.2.0-1) unstable; urgency=low
+
+  * New upstream release 
+    - Fixes HTML output (Closes: #419791)
+  * Updated 03_change_default_browser.dpatch
+  * Removed 08_cvs_imdbplugin and 04_dont_check_permissions (adopted by
+    upstream)
+  * Fix desktop file (08_fix_desktop_file.dpatch)
+  * Adapt menu file to new specification
+
+ -- Alexander Wirt <formorer@debian.org>  Sat, 08 Sep 2007 22:25:00 +0200
+
+gcstar (1.1.1-2) unstable; urgency=low
+
+  * Backport imdb plugin from cvs (Closes: #419792) 
+
+ -- Alexander Wirt <formorer@debian.org>  Wed, 18 Apr 2007 07:51:20 +0200
+
+gcstar (1.1.1-1) unstable; urgency=low
+
+  * New upstream version (Closes: #411825)
+    - Fixed a typo in the italian translation which caused segfault in gcstar
+      (Closes: #405973, #403069)
+  * Updated 03_change_default_browser.dpatch
+  * 08_workaround_for_HTML::Parser.dpatch (included upstream)
+
+ -- Alexander Wirt <formorer@debian.org>  Wed, 21 Feb 2007 10:44:07 +0100
+
+gcstar (1.0.0-1) unstable; urgency=low
+
+  * New upstream release (Closes: #409273)
+  * Backport a patch from CVS to get 1.0 work with HTML::Parser 3.56-1
+    (Closes: #409280)
+
+ -- Alexander Wirt <formorer@debian.org>  Thu,  1 Feb 2007 20:39:56 +0100
+
+gcstar (0.5.0-1) unstable; urgency=low
+
+  * New upstream release
+  * Add dep on libxml-parser-perl (Closes: #398816)
+
+ -- Alexander Wirt <formorer@debian.org>  Sat, 18 Nov 2006 01:22:59 +0100
+
+gcstar (0.4.1-2) unstable; urgency=low
+
+  * Add libxml-parser-perl and libxml-simple-perl to build deps 
+    (Closes:  #396887)
+
+ -- Alexander Wirt <formorer@debian.org>  Fri,  3 Nov 2006 15:58:04 +0100
+
+gcstar (0.4.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #381669)
+
+ -- Alexander Wirt <formorer@debian.org>  Sat,  9 Jul 2005 17:26:18 +0200
+
--- gcstar-1.5.0.orig/debian/gcstar_logo.xpm
+++ gcstar-1.5.0/debian/gcstar_logo.xpm
@@ -0,0 +1,291 @@
+/* XPM */
+static char *gcstar_logo[] = {
+/* columns rows colors chars-per-pixel */
+"32 32 253 2",
+"   c #05101A",
+".  c #195082",
+"X  c #255683",
+"o  c #2772B9",
+"O  c #2872B9",
+"+  c #1A84EC",
+"@  c #1F89ED",
+"#  c #2F85D5",
+"$  c #2A84DA",
+"%  c #3884CC",
+"&  c #3D88C8",
+"*  c #3185D4",
+"=  c #3189DD",
+"-  c #388ED0",
+";  c #3B8EDF",
+":  c #3D91CC",
+">  c #2385E2",
+",  c #2087ED",
+"<  c #238BED",
+"1  c #2887E1",
+"2  c #2C8AE1",
+"3  c #2A8DED",
+"4  c #2391ED",
+"5  c #2B91ED",
+"6  c #328EE6",
+"7  c #3293ED",
+"8  c #3399EE",
+"9  c #3E96E5",
+"0  c #3995EC",
+"q  c #3B98E6",
+"w  c #3C99ED",
+"e  c #3799F0",
+"r  c #3D9AF0",
+"t  c #3FA0F1",
+"y  c #4C86B8",
+"u  c #5086B4",
+"i  c #669D9E",
+"p  c #738EA2",
+"a  c #6DA09A",
+"s  c #75A28D",
+"d  c #71A298",
+"f  c #60A0B6",
+"g  c #4085C5",
+"h  c #4389C9",
+"j  c #4695CB",
+"k  c #439ADF",
+"l  c #4A9CDD",
+"z  c #4095E2",
+"x  c #459BE5",
+"c  c #429CEC",
+"v  c #4B9DE4",
+"b  c #499EEA",
+"n  c #409AF0",
+"m  c #519DE1",
+"M  c #509FE8",
+"N  c #4EA0DE",
+"B  c #55A2D3",
+"V  c #51A0D9",
+"C  c #5BA3D2",
+"Z  c #5BA4DC",
+"A  c #46A0ED",
+"S  c #4CA1E4",
+"D  c #4CA1EC",
+"F  c #44A2F0",
+"G  c #4BA3F0",
+"H  c #52A1E3",
+"J  c #53A5EC",
+"K  c #5BA5E5",
+"L  c #59A7EC",
+"P  c #5EA9E5",
+"I  c #5BA9EB",
+"U  c #51A5F1",
+"Y  c #56A9F2",
+"T  c #59ACF2",
+"R  c #62A7CC",
+"E  c #60A7D3",
+"W  c #61A5DE",
+"Q  c #62A8D0",
+"!  c #62A9D8",
+"~  c #6BADD5",
+"^  c #6AA9DC",
+"/  c #71AAD8",
+"(  c #74B1D5",
+")  c #73B2DB",
+"_  c #7AB4D4",
+"`  c #61A6E1",
+"'  c #62A9E5",
+"]  c #63ADEA",
+"[  c #69ADE0",
+"{  c #61ADF2",
+"}  c #68AFF2",
+"|  c #69B0EA",
+" . c #63B2F3",
+".. c #6CB5F3",
+"X. c #6DB8F4",
+"o. c #75B4E4",
+"O. c #70B7F4",
+"+. c #73BAF4",
+"@. c #7AB7F0",
+"#. c #7DBEF4",
+"$. c #7DC0F5",
+"%. c #8C9576",
+"&. c #899379",
+"*. c #8AA277",
+"=. c #90A671",
+"-. c #AB8F55",
+";. c #A5945B",
+":. c #B28850",
+">. c #BE9D41",
+",. c #ADAB53",
+"<. c #BEA141",
+"1. c #B9A846",
+"2. c #BFBB41",
+"3. c #BBBA4A",
+"4. c #B4AF7E",
+"5. c #C1AE3E",
+"6. c #D6AF2D",
+"7. c #DCA322",
+"8. c #DEA12B",
+"9. c #ED9911",
+"0. c #FD8900",
+"q. c #FD8E0A",
+"w. c #F98F11",
+"e. c #F1950F",
+"r. c #FD9200",
+"t. c #FD9C00",
+"y. c #F79219",
+"u. c #FD9313",
+"i. c #E18F2B",
+"p. c #EE9D37",
+"a. c #F49421",
+"s. c #F09B32",
+"d. c #E2AF1C",
+"f. c #ECA118",
+"g. c #EABF13",
+"h. c #FDA300",
+"j. c #FDAC00",
+"k. c #FDB300",
+"l. c #FDBB00",
+"z. c #FDA133",
+"x. c #D19242",
+"c. c #D6A059",
+"v. c #D4BB5E",
+"b. c #C9A675",
+"n. c #DDB67A",
+"m. c #DDB87F",
+"M. c #E6A754",
+"N. c #FDAC48",
+"B. c #FBAF55",
+"V. c #FDB646",
+"C. c #FDBB4B",
+"Z. c #FDBD5A",
+"A. c #FCB661",
+"S. c #FDBA60",
+"D. c #DBC523",
+"F. c #EFCC0E",
+"G. c #EBC013",
+"H. c #E8C816",
+"J. c #FDC300",
+"K. c #FDCC00",
+"L. c #FDD000",
+"P. c #F7CA47",
+"I. c #FDC55A",
+"U. c #F7D357",
+"Y. c #F8C66D",
+"T. c #F9CC6C",
+"R. c #F9CC78",
+"E. c #F7D873",
+"W. c #909083",
+"Q. c #9FAF90",
+"!. c #8EB4A1",
+"~. c #87B3BE",
+"^. c #AEA488",
+"/. c #A5AF9E",
+"(. c #B0A185",
+"). c #BDBB9B",
+"_. c #87A7C2",
+"`. c #88B4CC",
+"'. c #8BB8CC",
+"]. c #80B7D9",
+"[. c #95BCC9",
+"{. c #81BDF3",
+"}. c #BAC7BD",
+"|. c #83C3F6",
+" X c #89C4F5",
+".X c #89C8F6",
+"XX c #9AC6E5",
+"oX c #96CBF7",
+"OX c #94CDF8",
+"+X c #9ACCF5",
+"@X c #96D0F8",
+"#X c #9BD3F8",
+"$X c #A0C6DD",
+"%X c #A8CCD1",
+"&X c #BDC2C5",
+"*X c #B3D3D3",
+"=X c #A2CAE9",
+"-X c #A4D3F2",
+";X c #A0D5F8",
+":X c #A6D9F9",
+">X c #ADD4F5",
+",X c #A9D6F8",
+"<X c #AEDAF1",
+"1X c #ABDBF9",
+"2X c #B4D8E9",
+"3X c #BDDBE6",
+"4X c #B2DBF6",
+"5X c #B3DCF9",
+"6X c #B7E1F7",
+"7X c #B4E0FA",
+"8X c #B8E0FA",
+"9X c #C6B896",
+"0X c #CCBD9A",
+"qX c #D7B682",
+"wX c #DAB884",
+"eX c #DBBE8D",
+"rX c #D2BF97",
+"tX c #C9CDBF",
+"yX c #C2D1BA",
+"uX c #CAD1B5",
+"iX c #D2C3A0",
+"pX c #D6CCB1",
+"aX c #DCE1BD",
+"sX c #FDCB87",
+"dX c #FECC8E",
+"fX c #FCD180",
+"gX c #FAD49F",
+"hX c #FDD891",
+"jX c #F1CFA8",
+"kX c #FCDDAC",
+"lX c #F2D8BC",
+"zX c #FDDEBD",
+"xX c #F6E19E",
+"cX c #FAE39B",
+"vX c #F9E89F",
+"bX c #EDE2AD",
+"nX c #F3E3A3",
+"mX c #F6E3AC",
+"MX c #FBE3A3",
+"NX c #FBE2AC",
+"BX c #FDE8A5",
+"VX c #FDEAA9",
+"CX c #FCE2B4",
+"ZX c #FDE1BA",
+"AX c #C0D6DA",
+"SX c #D1D8D1",
+"DX c #C1DFF7",
+"FX c #D4E0C9",
+"GX c #C2E2F3",
+"HX c #C6E3F8",
+"JX c #CBE4F8",
+"KX c #D5E9F8",
+"LX c None",
+/* pixels */
+"LXLXLXLXLXLXLXLXLXLXLXLXm m e 8 7 7 9 9 LXLXLXLXLXLXLXLXLXLXLXLX",
+"LXLXLXLXLXLXLXLXLXLXm 9 < < 3 5 4 4 @ , 6 c LXLXLXLXLXLXLXLXLXLX",
+"LXLXLXLXLXLXLXLXm 3 < 8 T X.+.+.X.X.Y b e 4 4 0 LXLXLXLXLXLXLXLX",
+"LXLXLXLXLXLXLXZ , < Y $..X.X$.X.T T T T G n 3 4 c LXLXLXLXLXLXLX",
+"LXLXLXLXLXLXb 3 w +.#X@X+.Z h g * $ , 3 w G n e < 5 LXLXLXLXLXLX",
+"LXLXLXLXLX` 3 3 #.#X#Xo.W.:.x.c.b.(.p * @ 8 b n 5 < b LXLXLXLXLX",
+"LXLXLXLXK 3 7 O.1X-X(.i.N.sXCXZXZXzXZXjX_.6 6 U t 5 < x LXLXLXLX",
+"LXLXLXLX0 < L #X<X9Xa.Z.kXzXZXCXzXzXzXzXlX&X6 n  .8 4 5 LXLXLXLX",
+"LXLXLXJ 3 5 @X7X0Xa.dXZXzXNXZXCXCXCXCXzXZXkXtXv ] X.5 4 S LXLXLX",
+"LXLXK 0 < G 5X5Xp.B.ZXZXzXNXCXCXkXNXNXNXCXkXkX}.c  XF @ 8 I LXLX",
+"LXLXK 3 7 #.4X0Xz.jXCXCXNXNXBXMXxXMXnXMXMXMXMXBX`.@.|.8 4 P LXLX",
+"LXLXc 3 w oX3XM.Z.NXNXVXMXMXMXBXcXgXvXgXMXMXBXMXuXo.>XU 4 S LXLX",
+"LXLXr < U :XSXy.hXVXxXnXvXnXxXcXcXcXcXcXvXBXBXVXmX'.KX#.4 q LXLX",
+"LXLX6 < { 1XiXw.hXVXgXMXbXFXaXnXvXcXcXcXBXBXVXVXVXyXJX,X4 5 LXLX",
+"LXLX1 , ..8XwX0.Z.fXR.Y.[.) [ /.V.C.I.T.%X*XxXBXVXnX<XHX4 4 LXLX",
+"LXLX1 , O.5Xm.0.q.u.u.u.= + @ u r.t.h.7.5 q v.P.E.U.=XJX5 4 LXLX",
+"LXLX2 , ..8XwX0.0.0.0.0.$ + + # t.t.h.<.+ + 1.l.l.J.$XDX5 5 LXLX",
+"LXLX1 , } 5XeX0.0.0.0.0.y + + & t.h.j.<.+ + 5.J.K.K.XX>X5 5 LXLX",
+"LXLX6 , b 1XpXy.0.0.0.0.-.# > &.h.j.k.d.> > g.K.K.H.+X X8 5 LXLX",
+"LXLXe < n oXSXs.0.0.r.r.9.;.%.7.j.k.k.l.*.*.K.K.K.3.>X+.5 w LXLX",
+"LXLXr < 3 O.DXwXr.r.t.t.h.h.j.k.l.l.l.J.K.K.L.L.H.!.@XY 5 N LXLX",
+"LXLXb 3 , U <XAXe.r.t.t.h.j.k.k.l.l.J.K.K.K.L.L.3._ $.A 5 C LXLX",
+"LXLXm n , 3 |.8X).f.h.j.j.k.l.l.J.J.K.L.L.L.L.D.C |.Y 8 q C LXLX",
+"LXLXLXm , @ Y OX2X4.j.k.k.l.l.l.J.K.L.L.L.L.D.a  .+.A 4 N LXLXLX",
+"LXLXLXLX7 < 3 Y ;X,X/.6.l.l.K.K.L.L.L.L.F.v.j G O.T < 7 LXLXLXLX",
+"LXLXLXLXx < , 7 +.;X-X~.,.g.K.L.L.L.L.D.s : b .. .e 4 l LXLXLXLX",
+"LXLXLXLXLXx , , 7 T oX1X|.L f d s i : < q T +. .5 < l LXLXLXLXLX",
+"LXLXLXLXLXLX7 , < 3 T {.#X;X|.X.Y G T  .$.$.G 8 < 5 LXLXLXLXLXLX",
+"LXLXLXLXLXLXLXx , , , 0 G } #.|..X.X$...b 7 4 < 9 LXLXLXLXLXLXLX",
+"LXLXLXLXLXLXLXLXn 3 , , 3 7 e r w w 7 8 5 < 3 w LXLXLXLXLXLXLXLX",
+"LXLXLXLXLXLXLXLXLXLXc 7 < 3 3 7 5 3 3 4 5 q LXLXLXLXLXLXLXLXLXLX",
+"LXLXLXLXLXLXLXLXLXLXLXLXr r 3 7 7 7 r n c LXLXLXLXLXLXLXLXLXLXLX"
+};
--- gcstar-1.5.0.orig/debian/dirs
+++ gcstar-1.5.0/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- gcstar-1.5.0.orig/debian/README.source
+++ gcstar-1.5.0/debian/README.source
@@ -0,0 +1,2 @@
+We use dpatch for patch handling inside our nagios packages.  Please see
+/usr/share/doc/dpatch/README.source.gz (if you have installed dpatch) for documentation about dpatch.  
--- gcstar-1.5.0.orig/debian/gcstar.install
+++ gcstar-1.5.0/debian/gcstar.install
@@ -0,0 +1,3 @@
+share/applications/gcstar.desktop /usr/share/applications/
+debian/gcstar_logo.xpm /usr/share/pixmaps/
+share/applications/gcstar.xml /usr/share/mime/packages
--- gcstar-1.5.0.orig/debian/gcstar.links
+++ gcstar-1.5.0/debian/gcstar.links
@@ -0,0 +1,5 @@
+usr/share/gcstar/icons/gcstar_16x16.png usr/share/icons/hicolor/16x16/apps/gcstar.png
+usr/share/gcstar/icons/gcstar_24x24.png usr/share/icons/hicolor/24x24/apps/gcstar.png
+usr/share/gcstar/icons/gcstar_32x32.png usr/share/icons/hicolor/32x32/apps/gcstar.png
+usr/share/gcstar/icons/gcstar_48x48.png usr/share/icons/hicolor/48x48/apps/gcstar.png
+usr/share/gcstar/icons/gcstar_64x64.png usr/share/icons/hicolor/64x64/apps/gcstar.png
--- gcstar-1.5.0.orig/debian/compat
+++ gcstar-1.5.0/debian/compat
@@ -0,0 +1 @@
+7
--- gcstar-1.5.0.orig/debian/rules
+++ gcstar-1.5.0/debian/rules
@@ -0,0 +1,78 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=0
+
+export LANG=C
+export LC_ALL=C
+
+build: patch build-stamp
+
+build-stamp: 
+	dh_testdir
+
+	touch build-stamp
+
+clean: clean1 unpatch
+
+clean1:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep 
+	dh_installdirs
+	./install --text --prefix=$(CURDIR)/debian/gcstar/usr
+	#this is also in the copyright file
+	-rm debian/gcstar/usr/share/gcstar/LICENSE
+
+
+# Build architecture-independent files here.
+binary-arch: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-indep: build install patch
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGELOG
+	dh_installdocs 
+	dh_installexamples
+	dh_lintian
+	dh_install
+	dh_installmenu
+	dh_installman 
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_perl
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb 
+
+patch: patch-stamp
+patch-stamp:
+	dpatch apply-all
+	#dpatch call-all -a=pkg-info >patch-stamp #I don't understand this one.
+	echo patched > patch-stamp
+
+unpatch:
+	dpatch deapply-all
+	rm -rf patch-stamp debian/patched
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- gcstar-1.5.0.orig/debian/control
+++ gcstar-1.5.0/debian/control
@@ -0,0 +1,29 @@
+Source: gcstar
+Section: x11
+Priority: optional
+Maintainer: Alexander Wirt <formorer@debian.org>
+Build-Depends-Indep: libgtk2-perl, libwww-perl, libxml-parser-perl, libxml-simple-perl, libmp3-tag-perl, libogg-vorbis-header-pureperl-perl 
+Build-Depends: debhelper (>= 7), dpatch
+Standards-Version: 3.8.3
+Homepage: http://www.gcstar.org/
+
+Package: gcstar
+Architecture: all
+Depends: libgtk2-perl, libwww-perl, libarchive-tar-perl, libxml-simple-perl, libxml-parser-perl, libarchive-zip-perl, libmp3-tag-perl, libogg-vorbis-header-pureperl-perl, ${perl:Depends}
+Recommends: libgtk2-spell-perl, libnet-freedb-perl, libdatetime-format-strptime-perl, libmp3-info-perl
+Provides: gcfilms  
+Replaces: gcfilms 
+Conflicts: gcfilms (<= 6.4)
+Description: Manage your collections of movies, games, books, music and more
+ GCstar is an application for managing your collections. It supports
+ many types of collections, including movies, books, games, comics,
+ stamps, coins, and many more. You can even create your own
+ collection type for whatever unique thing it is that you collect.
+ .
+ Detailed information on each item can be automatically retrieved 
+ from the internet and you can store additional data, such as the 
+ location or who you've lent it to. You may also search and filter 
+ your collection by many criteria.
+ . 
+ GCstar is the successor GCfilms and is compatible to its databases. 
+ As GCfilms isn't developed any more GCstars replaces GCfilms.
--- gcstar-1.5.0.orig/debian/patches/00list
+++ gcstar-1.5.0/debian/patches/00list
@@ -0,0 +1,4 @@
+01-set_usr_lib.dpatch
+02gzip-manpage.dpatch
+03_change_default_browser.dpatch
+07_fix_manpath.dpatch
--- gcstar-1.5.0.orig/debian/patches/11_fix_allocine_plugin.dpatch
+++ gcstar-1.5.0/debian/patches/11_fix_allocine_plugin.dpatch
@@ -0,0 +1,245 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 11_fix_allocine_plugin.dpatch by Clément Hermann (nodens) <clement.hermann@free.fr>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstar-1.4.3~/lib/gcstar/GCPlugins/GCfilms/GCAllocine.pm gcstar-1.4.3/lib/gcstar/GCPlugins/GCfilms/GCAllocine.pm
+--- gcstar-1.4.3~/lib/gcstar/GCPlugins/GCfilms/GCAllocine.pm	2008-08-15 13:55:14.000000000 +0200
++++ gcstar-1.4.3/lib/gcstar/GCPlugins/GCfilms/GCAllocine.pm	2009-03-01 01:35:05.622195296 +0100
+@@ -2,7 +2,7 @@
+ 
+ ###################################################
+ #
+-#  Copyright 2005-2007 Tian
++#  Copyright 2005-2009 Tian
+ #
+ #  This file is part of GCstar.
+ #
+@@ -54,11 +54,16 @@
+         }
+         else
+         {
+-            if ($tagname eq "h4")
++            if ($tagname eq "h3")
+             {
+                 $self->{insideActors} = 0;
+                 $self->{insideDirector} = 0;
+-                if ($attr->{style} =~ /color:#D20000/)
++                $self->{insideCast}=0;
++                $self->{insideCastLine}=0;
++                $self->{insideRole}=0;
++                $self->{insideActor}=0;
++                $self->{insideDate}=0;
++                if ($attr->{style} =~ /color:\s*#D20000/)
+                 {
+                     $self->{insideAge} = 1;
+                 }
+@@ -70,7 +75,11 @@
+             elsif ($tagname eq "img")
+             {
+                 my $src = $attr->{src};
+-                if (!$self->{curInfo}->{image})
++                if($self->{insidePressRating} == 1 && $attr->{class}=~/etoile_(\d)/){
++                    $self->{curInfo}->{ratingpress}=2+2*$1;
++                    $self->{insidePressRating} = 0;
++                }
++                elsif (!$self->{curInfo}->{image})
+                 {
+                     if ($src =~ /\/nmedia\//)
+                     {
+@@ -78,9 +87,9 @@
+                         {
+                             my $pageUrl = $self->{loadedUrl};
+                             $pageUrl =~ s/fichefilm_/galerievignette_/;
+-                            my $page = $self->loadPage($pageUrl);
++                            my $page = $self->loadPage($pageUrl, 0, 1);
+                             $page =~ m/<img id='imgNormal' class='photo' src='(.*?)'/ms;
+-                            $src = $1;
++                            $src = $1 if $1;
+                         }
+                        $self->{curInfo}->{image} = $src;
+                     }
+@@ -90,6 +99,23 @@
+                     }
+                }
+            }
++           elsif (($tagname eq "table") && ($attr->{cast} eq "1"))
++           {
++               $self->{insideCast}=1;
++           }
++           elsif (($tagname eq "tr") && ($self->{insideCast}))
++           {
++               $self->{insideCastLine}=1;
++           }
++           elsif (($tagname eq "h5") && ($self->{insideCastLine}))
++           {
++               $self->{insideRole}=1;
++           }
++           elsif (($tagname eq "a") && ($self->{insideCastLine}))
++           {
++               $self->{insideRole}=0;
++               $self->{insideActor}=1;
++           }
+            elsif ($tagname eq "br")
+            {
+                if ($self->{insideSynopsis})
+@@ -109,6 +135,24 @@
+         {
+             $self->{insideSynopsis} = 0;
+         }
++       elsif (($tagname eq "td") && ($self->{isInfo}))
++       {
++           #work around bad date for last search result
++           $self->{isInfo}=0;
++       }
++       elsif (($tagname eq "td") && ($self->{insideCastLine}))
++       {
++           $self->{insideRole}=0;
++           $self->{insideActor}=0;
++       }
++       elsif (($tagname eq "tr") && ($self->{insideCastLine}))
++       {
++           $self->{insideCastLine}=0;
++       }
++       elsif (($tagname eq "table") && ($self->{insideCast}))
++       {
++           $self->{insideCast}=0;
++       }
+     }
+ 
+     sub text
+@@ -153,21 +197,46 @@
+                 $origtext =~ s/[\r\n]//g;
+                 $self->{curInfo}->{title} = $origtext if length($origtext) > 2;
+             }
+-            if ($self->{inside}->{h3})
++            if ($self->{inside}->{h2})
+             {
+-                $self->{insideSynopsis} = 1 if $origtext =~ /Synopsis/
++                $self->{insideSynopsis} = 1 if $origtext =~ /Synopsis/;
+             }
+-            if ($self->{inside}->{h4})
+-            {
+-                if ($self->{insideSynopsis})
++            if ($self->{inside}->{h4}){
++                if ($self->{insideActors})
+                 {
+                     $self->{curInfo}->{synopsis} .= $origtext;
+                 }
+-                elsif ($self->{insideActors})
++                elsif ($self->{insideSynopsis})
++                {
++                    $self->{curInfo}->{synopsis} .= $origtext;
++                }
++                elsif ( $origtext =~ /^Saga /)
+                 {
++                    $origtext =~ s/Saga //;
++                    $self->{curInfo}->{serie}=$origtext;
++                }
++            }
++            elsif ($self->{inside}->{h3})
++            {
++                if ($self->{insideActors})
++                {
++                    #Actors from fichefilm page
+                     $self->{curInfo}->{actors} .= $origtext;
+                     $self->{curInfo}->{actors} =~ s/^\s*//;
+                 }
++                elsif ($self->{insideRole})
++                {
++                    #Roles from casting page
++                    push @{$self->{curInfo}->{actors}}, [$origtext,$origtext] 
++                    if ($self->{actorsCounter} <= $GCPlugins::GCfilms::GCfilmsCommon::MAX_ACTORS);
++                }
++                elsif ($self->{insideActor})
++                {
++                    #Actors from casting page
++                    $self->{curInfo}->{actors}->[$self->{actorsCounter}]->[0]=$origtext
++                    if ($self->{actorsCounter} <= $GCPlugins::GCfilms::GCfilmsCommon::MAX_ACTORS);
++                    $self->{actorsCounter}++;
++                }
+                 elsif ($self->{insideDirector})
+                 {
+                     $self->{curInfo}->{director} .= $origtext;
+@@ -177,6 +246,18 @@
+                     $origtext =~ s/.*?([0-9]+).*/$1/;
+                     $self->{curInfo}->{age} = $origtext;
+                 }
++                elsif ($self->{insideDate})
++                {
++                    $origtext =~ s/^[\s\n]*//;
++                    $origtext =~ s/\s*$//;
++                    $self->{curInfo}->{date} = $origtext;
++                    $self->{insideDate}=0;
++                }
++                elsif (( $origtext =~ /^Date de sortie/ )
++                    && ( !$self->{curInfo}->{date} ) )
++                {
++                    $self->{insideDate}=1;
++                }
+                 elsif ( $origtext =~ /^Genre/ )
+                 {
+                     $origtext =~ s/^Genre : //;
+@@ -193,14 +274,6 @@
+                     $origtext =~ s/^Durée : (.*)?/$1/;
+                     $self->{curInfo}->{time} = $origtext;
+                 }
+-                elsif (( $origtext =~ /Date de sortie/ )
+-                    && ( !$self->{curInfo}->{date} ) )
+-                {
+-                    $origtext =~ s/Date de sortie : (.*)/$1/;
+-                    $origtext =~ s/^[\s\n]*//;
+-                    $origtext =~ s/\s*$//;
+-                    $self->{curInfo}->{date} = $origtext;
+-                }
+                 elsif ( $origtext =~ /^Titre original/ )
+                 {
+                     $origtext =~ s/^Titre original : .*?/$1/;
+@@ -208,13 +281,18 @@
+                 }
+                 elsif (($origtext =~ /^Avec/ ) && (! $self->{curInfo}->{actors}))
+                 {
++                    #Detecting actors from fichefilm page
+                     $self->{insideActors} = 1;
+                 }
+                 elsif ( $origtext =~ /^Réalisé par/ )
+                 {
+                     $self->{insideDirector} = 1;
+                 }
+-           }
++            }
++            elsif ( $origtext =~ /^Presse$/ )
++            {
++               $self->{insidePressRating} = 1;
++            }
+         }
+     }
+ 
+@@ -235,6 +313,7 @@
+         $self->{isMovie} = 0;
+         $self->{curName} = undef;
+         $self->{curUrl} = undef;
++        $self->{actorsCounter}=0;
+ 
+         bless ($self, $class);
+         return $self;
+@@ -252,8 +331,15 @@
+ 
+         if (!$self->{parsingList})
+         {
+-            # Remove link "Plus" in list of actors
+-            $html =~ s|<a href="/film/casting_gen_cfilm=.*?>.*?</a>||gi;
++            #Remplacing actor list with cast page list
++            my $pageUrl = $self->{loadedUrl};
++            $pageUrl =~ s/fichefilm_/casting_/;
++            my $page = $self->loadPage($pageUrl, 0, 1);
++            if($page =~ m|<h2[^>]*>Acteurs</h2><hr /></td></tr>(.*?)</table>|ms)
++            {
++                my $src = $1;
++                $html =~ s|Avec.*Plus\.\.\.</a>|<table cast=1>$src</table>|i;
++            }
+         }
+         
+         return $html;
--- gcstar-1.5.0.orig/debian/patches/07_fix_manpath.dpatch
+++ gcstar-1.5.0/debian/patches/07_fix_manpath.dpatch
@@ -0,0 +1,32 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 07_fix_manpath.dpatch by Alexander Wirt <formorer@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstar-1.4.3~/install gcstar-1.4.3/install
+--- gcstar-1.4.3~/install	2009-02-28 18:56:29.674198841 +0100
++++ gcstar-1.4.3/install	2009-02-28 18:58:05.402193838 +0100
+@@ -107,7 +107,7 @@
+     }
+     
+     unlink $baseDir.'/bin/'.$binName;
+-    unlink $baseDir.'/man/man1/'.$binName.'.1.gz';
++    unlink $baseDir.'share/man/man1/'.$binName.'.1.gz';
+ 
+     # remove menu and mime items
+ 
+@@ -187,9 +187,9 @@
+     mkpath $baseDir.'/bin';
+     copy 'bin/gcstar', $baseDir.'/bin/'.$binName;
+     
+-    verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/man/man1';
+-    mkpath $baseDir.'/man/man1';
+-    my $manPage = "$baseDir/man/man1/$binName.1";
++    verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/share/man/man1';
++    mkpath $baseDir.'/share/man/man1';
++    my $manPage = "$baseDir/share/man/man1/$binName.1";
+     copy 'man/gcstar.1', $manPage;
+     `gzip -f -9 $manPage 2>&1 >/dev/null`;
+     
--- gcstar-1.5.0.orig/debian/patches/03_change_default_browser.dpatch
+++ gcstar-1.5.0/debian/patches/03_change_default_browser.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_change_default_browser.dpatch by Alexander Wirt <formorer@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstar-1.2.0~/lib/gcstar/GCOptions.pm gcstar-1.2.0/lib/gcstar/GCOptions.pm
+--- gcstar-1.2.0~/lib/gcstar/GCOptions.pm	2007-08-18 14:41:14.000000000 +0200
++++ gcstar-1.2.0/lib/gcstar/GCOptions.pm	2007-09-08 22:33:51.000000000 +0200
+@@ -122,7 +122,7 @@
+                 autosave         => 1,
+                 noautoload       => 0,
+                 programs         => "system",
+-                browser          => "firefox",
++                browser          => "x-www-browser",
+                 player           => "mplayer",
+                 audio            => "xmms",
+                 file             => "",
--- gcstar-1.5.0.orig/debian/patches/01-set_usr_lib.dpatch
+++ gcstar-1.5.0/debian/patches/01-set_usr_lib.dpatch
@@ -0,0 +1,36 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01-set_usr_lib.dpatch by Alexander Wirt <formorer@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstar-1.4.3~/bin/gcstar gcstar-1.4.3/bin/gcstar
+--- gcstar-1.4.3~/bin/gcstar	2008-10-11 13:08:15.000000000 +0200
++++ gcstar-1.4.3/bin/gcstar	2009-02-28 18:55:56.710196397 +0100
+@@ -44,9 +44,9 @@
+ use POSIX qw(locale_h);
+ 
+ $ENV{GCS_BIN_DIR} = $RealBin;
+-($ENV{GCS_LIB_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/lib\/gcstar/;
++($ENV{GCS_LIB_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/share\/gcstar\/lib/;
+ ($ENV{GCS_SHARE_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/share\/gcstar/;
+-use lib File::Spec->canonpath("$RealBin/../lib/gcstar");
++use lib File::Spec->canonpath("$RealBin/../share/gcstar/lib");
+ if (exists $ENV{PAR_TEMP})
+ {
+     unshift @INC, "$RealBin/../lib/gcstar";
+diff -urNad gcstar-1.4.3~/install gcstar-1.4.3/install
+--- gcstar-1.4.3~/install	2008-07-17 19:31:01.000000000 +0200
++++ gcstar-1.4.3/install	2009-02-28 18:55:56.710196397 +0100
+@@ -196,8 +196,8 @@
+     chmod 0755, $baseDir.'/bin/'.$binName;
+ 
+     #Copying lib
+-    verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/lib/gcstar';
+-    recursiveCopy('lib/gcstar', $baseDir.'/lib/gcstar');
++    verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/share/gcstar/lib';
++    recursiveCopy('lib/gcstar', $baseDir.'/share/gcstar/lib');
+ 
+     #Copying share
+     verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/share/gcstar';
--- gcstar-1.5.0.orig/debian/patches/12_Fix_GCGraphicComponents.pm.dpatch
+++ gcstar-1.5.0/debian/patches/12_Fix_GCGraphicComponents.pm.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 12_Fix_GCGraphicComponents.pm.dpatch by Alexander Wirt <formorer@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Grabbed from upstreams bts. Fixes a crash in CGraphicComponents.pm (#530821)
+
+@DPATCH@
+diff -urNad gcstar-1.4.3~/lib/gcstar/GCGraphicComponents.pm gcstar-1.4.3/lib/gcstar/GCGraphicComponents.pm
+--- gcstar-1.4.3~/lib/gcstar/GCGraphicComponents.pm	2008-08-15 16:42:28.000000000 +0200
++++ gcstar-1.4.3/lib/gcstar/GCGraphicComponents.pm	2009-06-13 09:20:37.000000000 +0200
+@@ -2379,6 +2379,8 @@
+         
+         $self->signal_connect('query_tooltip' => sub {
+             my ($window, $x, $y, $keyboard_mode, $tip) = @_;
++	    return if $self->{settingTip};
++            $self->{settingTip} = 1;
+             if ($self->{flipActivated} && ($x > $self->{flipX}) && ($y > $self->{flipY}))
+             {
+                 $self->{tooltips}->set_tip($self, $self->{flipped} ?
+@@ -2389,6 +2391,7 @@
+             {
+                 $self->{tooltips}->set_tip($self, $self->{tip});
+             }
++            $self->{settingTip} = 0;
+             return 0;
+         });
--- gcstar-1.5.0.orig/debian/patches/02gzip-manpage.dpatch
+++ gcstar-1.5.0/debian/patches/02gzip-manpage.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02gzip-manpage.dpatch by Alexander Wirt <formorer@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstar-0.4.1~/install gcstar-0.4.1/install
+--- gcstar-0.4.1~/install	2006-10-14 09:25:28.000000000 +0200
++++ gcstar-0.4.1/install	2006-10-14 09:25:36.000000000 +0200
+@@ -145,7 +145,7 @@
+     mkpath $baseDir.'/man/man1';
+     my $manPage = "$baseDir/man/man1/$binName.1";
+     copy 'man/gcstar.1', $manPage;
+-    `gzip -f $manPage 2>&1 >/dev/null`;
++    `gzip -f -9 $manPage 2>&1 >/dev/null`;
+     
+     chmod 0755, $baseDir.'/bin/'.$binName;
+ 
--- gcstar-1.5.0.orig/debian/source/format
+++ gcstar-1.5.0/debian/source/format
@@ -0,0 +1 @@
+1.0
