summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog216
-rw-r--r--debian/compat1
-rw-r--r--debian/control56
-rw-r--r--debian/copyright145
-rw-r--r--debian/docs2
-rw-r--r--debian/gcstar.install3
-rw-r--r--debian/gcstar.links7
-rw-r--r--debian/gcstar_logo.xpm291
-rw-r--r--debian/menu8
-rw-r--r--debian/patches/01_set_usr_lib.patch39
-rw-r--r--debian/patches/03_change_default_browser.patch19
-rw-r--r--debian/patches/05-keywords_desktop.patch15
-rw-r--r--debian/patches/10-remove-system-calls.patch22
-rw-r--r--debian/patches/11-fix_gamespot_plugin.patch281
-rw-r--r--debian/patches/12-fix_gamespot_images.patch20
-rw-r--r--debian/patches/13-fix_musicbrainz.patch25
-rw-r--r--debian/patches/14-fix_imdb.patch45
-rw-r--r--debian/patches/16-fix_isbndb_plugin.patch252
-rw-r--r--debian/patches/series9
-rwxr-xr-xdebian/rules34
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/options2
-rw-r--r--debian/watch2
23 files changed, 1495 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..b5c96ee
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,216 @@
+gcstar (1.7.0-2) UNRELEASED; urgency=medium
+
+ * debian/control:
+ - Bump Standards-Version to 3.9.6 (no changes required).
+ * debian/copyright:
+ - Add year 2015.
+ - Change "GPL-2 with exceptions" to "GPL-2 with RedHat exception"
+ to prevent lintian warning.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 29 Apr 2015 09:29:49 +0200
+
+gcstar (1.7.0-1) unstable; urgency=medium
+
+ * New maintainer (Closes: #753661).
+ * New upstream-version 1.7.0 (Closes: #703251, #629335, #648634)
+ - Remove debian/patches/02gzip-manpage.dpatch
+ - Remove debian/patches/07_fix_manpath.dpatch
+ - Remove debian/patches/11_fix_allocine_plugin.dpatch
+ - Remove debian/patches/12_Fix_GCGraphicComponents.pm.dpatch
+ - Rewrite patches from dpatch to quilt:
+ + debian/patches/01_set_usr_lib.patch.
+ + debian/patches/03_change_default_browser.patch.
+ * debian/control:
+ - Set myself as maintainer.
+ - Bump Standards-Version to 3.9.5 (no changes required).
+ - Change depends
+ + Replace dropped ttf-liberation with fonts-liberation (Closes: #722409).
+ * Add debian/source/options:
+ - Set compression to xz & compression-level to 9 to save space.
+ * Change debian/compat to 9 (no changes required).
+ * debian/copyright:
+ - Rewrite into machine-readable format.
+ - Add myself to the list of authors for debian/*.
+ - Update copyright years for 2014.
+ - Add missing licenses and authors.
+ * debian/rules:
+ - Enable hardening.
+ - Rewrite rules with the newest deb-helper version.
+ - Add --noclean to upstream install to prevent build error messages.
+ - Make the script usr/share/gcstar/xslt/applyXSLT.pl executable.
+ * New debian/patches/05-keywords_desktop.patch:
+ - Add missing Keywords entry to the .desktop file.
+ * New debian/patches/10-remove-system-calls.patch:
+ - Remove system calls from upstream install to prevent build error messages.
+ * New patches for plugins to work with latest website changes:
+ - 11-fix_gamespot_plugin.patch
+ - 12-fix_gamespot_images.patch
+ - 13-fix_musicbrainz.patch
+ - 14-fix_imdb.patch
+ - 16-fix_isbndb_plugin.patch
+ Thanks to
+ Marc Deslauriers <marc.deslauriers@canonical.com> and
+ David Weinehall <tao@acc.umu.se>
+ * Remove useless:
+ - debian/README.source
+ - debian/dirs
+ - debian/gcstar.lintian-overrides
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Tue, 09 Sep 2014 20:22:21 +0200
+
+gcstar (1.6.2-1) unstable; urgency=low
+
+ * [0a00985] Imported Upstream version 1.6.2
+ (Closes: #636168)
+ - Fix imdb plugin (Closes: #630729)
+ * [2968bd2] Add missing build-targets to rules file
+
+ -- Alexander Wirt <formorer@debian.org> Tue, 09 Aug 2011 08:44:08 +0200
+
+gcstar (1.6.1-1) unstable; urgency=low
+
+ * [9c36c7f] Unset verbose in rules file
+ * [483cffb] Initial upstream branch.
+ * [e14af9e] Imported Upstream version 1.6.1
+ * [5cb1e7d] Bump standards version (no changes)
+ * [46ae5fd] Use the packaged liberation font
+ * [db19269] Remove obsolete license files
+ * [e3c5b2a] Add debhelpers ${misc:Depends} to binary package
+ * [266ec67] Add missing exectute bit to xslt script
+
+ -- Alexander Wirt <formorer@debian.org> Thu, 26 May 2011 09:34:48 +0200
+
+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
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..49f1788
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,56 @@
+Source: gcstar
+Section: x11
+Priority: optional
+Maintainer: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Build-Depends-Indep:
+ libarchive-zip-perl,
+ libdate-calc-perl,
+ libdatetime-format-strptime-perl,
+ libgd-graph-perl,
+ libgtk2-perl,
+ libmp3-info-perl,
+ libmp3-tag-perl,
+ libnet-freedb-perl,
+ libogg-vorbis-header-pureperl-perl,
+ libwww-perl,
+ libxml-parser-perl,
+ libxml-simple-perl,
+Build-Depends:
+ debhelper (>= 9)
+Standards-Version: 3.9.6
+Homepage: http://www.gcstar.org/
+Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/gcstar.git
+Vcs-Git: git://anonscm.debian.org/collab-maint/gcstar.git
+
+Package: gcstar
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${perl:Depends},
+ fonts-liberation,
+ libarchive-tar-perl,
+ libarchive-zip-perl,
+ libgtk2-perl,
+ libmp3-tag-perl,
+ libogg-vorbis-header-pureperl-perl,
+ libwww-perl,
+ libxml-simple-perl,
+ libxml-parser-perl
+Recommends:
+ libdatetime-format-strptime-perl,
+ libgtk2-spell-perl,
+ libmp3-info-perl,
+ libnet-freedb-perl
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..df25ce4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,145 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: gcstar
+Upstream-Contact: Tian <tian@c-sait.net>
+Source: http://www.gcstar.org/
+
+Files: *
+Copyright: 2005-2014 Christian Jodar aka Tian <tian@gcstar.org, tian@c-sait.net>
+ 2005-2010 Bai Wensimi
+ 2005-2009 zserghei
+ 2007-2011 Petr Gajdůšek <gajdusek.petr@centrum.cz>
+ 2007-2009 Zuencap
+ 2007 Mattias de Hollander (MaTiZ) <mdehollander@gmail.com>
+ 2007 Yves Martin
+ 2008 t-storm
+ 2009-2010 Andrew Ross
+ 2009 FiXx
+ 2010 groms
+License: GPL-2+
+
+Files: share/gcstar/fonts/*
+Copyright: 2007 Red Hat, Inc.
+License: GPL-2 with RedHat exception
+
+Files: share/gcstar/helpers/*
+Copyright: 2006 Kevin Krammer <kevin.krammer@gmx.at>
+ 2006 Jeremy White <jwhite@codeweavers.com>
+License: Expat
+
+Files: debian/*
+Copyright: 2006-2011 Alexander Wirt <formorer@debian.org>
+ 2014-2015 Jörg Frings-Fürst <debian@jff-webhosting.net>
+License: GPL-3.0+
+
+License: GPL-2+
+ This program 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 program 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 program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-2 file.
+
+License: GPL-3.0+
+ 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 3 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 program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
+License: GPL-2 with RedHat exception
+ This agreement governs the use of the Software and any updates to the
+ Software, regardless of the delivery mechanism. Subject to the following
+ terms, Red Hat, Inc. ("Red Hat") grants to the user ("Client") a license to
+ this work pursuant to the GNU General Public License v.2 with the exceptions
+ set forth below and such other terms as are set forth in this End User
+ License Agreement.
+ .
+ 1. The Software and License Exception. LIBERATION font software
+ (the "Software") consists of TrueType-OpenType formatted font software for
+ rendering LIBERATION typefaces in sans-serif, serif, and monospaced
+ character styles. You are licensed to use, modify, copy, and distribute the
+ Software pursuant to the GNU General Public License v.2 with the following
+ exceptions:
+ .
+ (a) As a special exception, if you create a document which uses this font,
+ and embed this font or unaltered portions of this font into the document,
+ this font does not by itself cause the resulting document to be covered
+ by the GNU General Public License. This exception does not however
+ invalidate any other reasons why the document might be covered by the
+ GNU General Public License. If you modify this font, you may extend this
+ exception to your version of the font, but you are not obligated to do so.
+ If you do not wish to do so, delete this exception statement from your
+ version.
+ .
+ (b) As a further exception, any distribution of the object code of the
+ Software in a physical product must provide you the right to access and
+ modify the source code for the Software and to reinstall that modified
+ version of the Software in object code form on the same physical product
+ on which you received it.
+ .
+ 2. Intellectual Property Rights. The Software and each of its components,
+ including the source code, documentation, appearance, structure and
+ organization are owned by Red Hat and others and are protected under
+ copyright and other laws. Title to the Software and any component, or to
+ any copy, modification, or merged portion shall remain with the
+ aforementioned, subject to the applicable license. The "LIBERATION"
+ trademark is a trademark of Red Hat, Inc. in the U.S. and other countries.
+ This agreement does not permit Client to distribute modified versions of the
+ Software using Red Hat's trademarks. If Client makes a redistribution of a
+ modified version of the Software, then Client must modify the files names
+ to remove any reference to the Red Hat trademarks and must not use the
+ Red Hat trademarks in any way to reference or promote the modified Software.
+ .
+ 3. Limited Warranty. To the maximum extent permitted under applicable law, the
+ Software is provided and licensed "as is" without warranty of any kind,
+ expressed or implied, including the implied warranties of merchantability,
+ non-infringement or fitness for a particular purpose. Red Hat does not
+ warrant that the functions contained in the Software will meet Client's
+ requirements or that the operation of the Software will be entirely error
+ free or appear precisely as described in the accompanying documentation.
+ .
+ 4. Limitation of Remedies and Liability. To the maximum extent permitted by
+ applicable law, Red Hat or any Red Hat authorized dealer will not be liable
+ to Client for any incidental or consequential damages, including lost
+ profits or lost savings arising out of the use or inability to use the
+ Software, even if Red Hat or such dealer has been advised of the
+ possibility of such damages.
+ .
+ 5. General. If any provision of this agreement is held to be unenforceable,
+ that shall not affect the enforceability of the remaining provisions.
+ This agreement shall be governed by the laws of the State of
+ North Carolina and of the United States, without regard to any conflict
+ of laws provisions, except that the United Nations Convention on the
+ International Sale of Goods shall not apply.
+ .
+ Copyright © 2007 Red Hat, Inc. All rights reserved. LIBERATION is a trademark of Red Hat, Inc.
+
+License: Expat
+ 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.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..dccc5d8
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README
+README.fr
diff --git a/debian/gcstar.install b/debian/gcstar.install
new file mode 100644
index 0000000..50e905f
--- /dev/null
+++ b/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
diff --git a/debian/gcstar.links b/debian/gcstar.links
new file mode 100644
index 0000000..a4a8abb
--- /dev/null
+++ b/debian/gcstar.links
@@ -0,0 +1,7 @@
+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
+usr/share/gcstar/icons/gcstar_scalable.svg usr/share/icons/hicolor/scalable/apps/gcstar.svg
+usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf usr/share/gcstar/fonts/LiberationSans-Regular.ttf
diff --git a/debian/gcstar_logo.xpm b/debian/gcstar_logo.xpm
new file mode 100644
index 0000000..d11f79e
--- /dev/null
+++ b/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"
+};
diff --git a/debian/menu b/debian/menu
new file mode 100644
index 0000000..5cbe14f
--- /dev/null
+++ b/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"
+
diff --git a/debian/patches/01_set_usr_lib.patch b/debian/patches/01_set_usr_lib.patch
new file mode 100644
index 0000000..bb76363
--- /dev/null
+++ b/debian/patches/01_set_usr_lib.patch
@@ -0,0 +1,39 @@
+Description: change directory-structure
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Forwarded: not-needed
+Last-Update: 2014-07-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/bin/gcstar
+===================================================================
+--- trunk.orig/bin/gcstar 2012-01-24 05:13:14.000000000 +0100
++++ trunk/bin/gcstar 2014-07-06 12:49:07.395235464 +0200
+@@ -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";
+Index: trunk/install
+===================================================================
+--- trunk.orig/install 2011-07-17 14:22:58.000000000 +0200
++++ trunk/install 2014-07-06 12:53:49.517946204 +0200
+@@ -255,9 +255,9 @@
+ 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';
+ recursiveCopy('share/gcstar', $baseDir.'/share/gcstar');
diff --git a/debian/patches/03_change_default_browser.patch b/debian/patches/03_change_default_browser.patch
new file mode 100644
index 0000000..facd20f
--- /dev/null
+++ b/debian/patches/03_change_default_browser.patch
@@ -0,0 +1,19 @@
+Description: change options/browser
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Forwarded: not-needed
+Last-Update: 2014-07-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/lib/gcstar/GCOptions.pm
+===================================================================
+--- trunk.orig/lib/gcstar/GCOptions.pm 2012-01-25 06:24:36.000000000 +0100
++++ trunk/lib/gcstar/GCOptions.pm 2014-07-06 12:39:12.332643339 +0200
+@@ -127,7 +127,7 @@
+ autosave => 1,
+ noautoload => 0,
+ programs => "system",
+- browser => "firefox",
++ browser => "x-www-browser",
+ player => "mplayer",
+ audio => "xmms",
+ imageEditor => "gimp",
diff --git a/debian/patches/05-keywords_desktop.patch b/debian/patches/05-keywords_desktop.patch
new file mode 100644
index 0000000..16131cc
--- /dev/null
+++ b/debian/patches/05-keywords_desktop.patch
@@ -0,0 +1,15 @@
+Description: Add _Keywords to .desktop file
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Forwarded: not-needed
+Last-Update: 2014-08-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/share/applications/gcstar.desktop
+===================================================================
+--- trunk.orig/share/applications/gcstar.desktop 2014-08-21 00:41:08.769531779 +0200
++++ trunk/share/applications/gcstar.desktop 2014-08-21 00:41:19.817694292 +0200
+@@ -16,3 +16,4 @@
+ Type=Application
+ Categories=Office;
+ MimeType=application/x-gcstar
++Keywords=collection;movies;games;books;music;
diff --git a/debian/patches/10-remove-system-calls.patch b/debian/patches/10-remove-system-calls.patch
new file mode 100644
index 0000000..99e67dc
--- /dev/null
+++ b/debian/patches/10-remove-system-calls.patch
@@ -0,0 +1,22 @@
+Description: Remove useless system calls at install
+ Remove update-desktop-database & update-mime-database from upstream install
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Forwarded: not-needed
+Last-Update: 2014-08-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/install
+===================================================================
+--- trunk.orig/install 2014-08-21 06:08:40.813186136 +0200
++++ trunk/install 2014-08-21 06:09:04.117649411 +0200
+@@ -228,8 +228,8 @@
+ copy 'share/applications/gcstar.xml', '/usr/share/mime/packages'
+ if (-w '/usr/share/mime/packages');
+
+- system 'update-desktop-database';
+- system 'update-mime-database /usr/share/mime';
++# system 'update-desktop-database';
++# system 'update-mime-database /usr/share/mime';
+
+
+ }
diff --git a/debian/patches/11-fix_gamespot_plugin.patch b/debian/patches/11-fix_gamespot_plugin.patch
new file mode 100644
index 0000000..a5827eb
--- /dev/null
+++ b/debian/patches/11-fix_gamespot_plugin.patch
@@ -0,0 +1,281 @@
+Description: fix GameSpot games plugin
+Origin: upstream, http://svn.gna.org/viewcvs/gcstar?view=revision&revision=2241
+
+Caution: this patch contains CRLF terminators,
+be careful when editing.
+
+Index: gcstar-1.7.0/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm
+===================================================================
+--- gcstar-1.7.0.orig/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm 2011-11-26 05:46:14.000000000 -0500
++++ gcstar-1.7.0/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm 2013-08-07 16:51:39.584461692 -0400
+@@ -2,7 +2,7 @@
+
+ ###################################################
+ #
+-# Copyright 2005-2011 Christian Jodar
++# Copyright 2005-2013 Christian Jodar
+ #
+ # This file is part of GCstar.
+ #
+@@ -40,21 +40,30 @@
+ $self->{inside}->{$tagname}++;
+ if ($self->{parsingList})
+ {
+- if ($tagname eq 'div')
++ if (($tagname eq 'div') && ($attr->{class} eq 'result_title'))
+ {
+- $self->{isGame} = 1
+- if $attr->{class} =~ /result_title/;
++ $self->{isGame} = 1;
+ }
+- elsif ($tagname eq 'tpfdatetpf')
+- {
+- $self->{isDate} = 1;
+- }
+- elsif (($tagname eq 'a') && ($self->{isGame}))
++ elsif (($tagname eq 'a') && ($self->{isGame}) && ($self->{isName} eq 0))
+ {
+ $self->{itemIdx}++;
+ $self->{itemsList}[$self->{itemIdx}]->{url} = $attr->{href};
+ $self->{isName} = 1;
+ }
++ elsif (($tagname eq 'span') && ($attr->{class} eq 'release'))
++ {
++ $self->{isDate} = 1;
++ }
++ elsif (($tagname eq 'span') && ($attr->{class} eq 'platforms'))
++ {
++ $self->{isPlatform} = 1;
++ }
++ elsif (($tagname eq 'div') && ($attr->{class} eq 'clear') && ($self->{isGame}))
++ {
++ $self->{isGame} = 0;
++ $self->{isEnd} = 1;
++ $self->{isName} = 0;
++ }
+ }
+ elsif ($self->{parsingTips})
+ {
+@@ -97,17 +106,29 @@
+ {
+ $self->{curInfo}->{boxpic} = $attr->{src};
+ }
+- if ($attr->{src} =~ /thumb/)
++ if ($attr->{src} =~ /thumb([0-9])/)
+ {
+- my $pic = $attr->{src};
+- $pic =~ s/thumb00([0-9])/screen00$1/;
+- if ($1 && ($1 <= 2))
++ if (! $self->{curInfo}->{screenshot1})
++ {
++ $self->{curInfo}->{screenshot1} = $attr->{src};
++ $self->{curInfo}->{screenshot1} =~ s|thumb|screen|;
++ }
++ elsif (! $self->{curInfo}->{screenshot2})
+ {
+- $self->{curInfo}->{'screenshot'.$1} = $pic
+- if ! $self->{curInfo}->{'screenshot'.$1};
++ $self->{curInfo}->{screenshot2} = $attr->{src};
++ $self->{curInfo}->{screenshot2} =~ s|thumb|screen|;
+ }
+ }
+ }
++ elsif ($tagname eq 'tpffiltertpf')
++ {
++ my $found = index($attr->{activefilter},"'site':'");
++ if ( $found >= 0 )
++ {
++ $self->{curInfo}->{platform} = substr($attr->{activefilter}, $found +length('\'site\':\''),length($attr->{activefilter})- $found -length('\'site\':\''));
++ $self->{curInfo}->{platform} = substr($self->{curInfo}->{platform}, 0,index($self->{curInfo}->{platform},"'"));
++ }
++ }
+ elsif (($tagname eq 'div') && ($attr->{class} eq 'boxshot'))
+ {
+ $self->{isBox} = 1;
+@@ -116,6 +137,7 @@
+ {
+ my $html = $self->loadPage($self->getItemUrl($attr->{href}), 0, 1);
+ my $found = index($html,"id=\"main_image\" src=\"");
++ my $found2 = index($html,"img=back");
+ if ( $found >= 0 )
+ {
+ $html = substr($html, $found +length('id="main_image" src="'),length($html)- $found -length('id="main_image" src="'));
+@@ -126,8 +148,11 @@
+ {
+ $self->{curInfo}->{boxpic} = $array[0];
+ }
+- $self->{curInfo}->{backpic} = $array[0];
+- $self->{curInfo}->{backpic} =~ s/_front/_back/;
++ if ( $found2 >= 0 )
++ {
++ $self->{curInfo}->{backpic} = $array[0];
++ $self->{curInfo}->{backpic} =~ s/_front/_back/;
++ }
+ }
+ $self->{isBox} = 0;
+ }
+@@ -135,11 +160,11 @@
+ {
+ $self->{isName} = 1 if ! $self->{curInfo}->{name};
+ }
+- elsif (($tagname eq 'meta') && ($attr->{name} eq 'description'))
++ elsif (($tagname eq 'meta') && ($attr->{property} eq 'og:description'))
+ {
+ $self->{curInfo}->{description} = $attr->{content};
+ }
+- elsif (($tagname eq 'li') && ($attr->{class} =~ /activeFilter/))
++ elsif (($tagname eq 'div') && ($attr->{class} eq 'availPlats'))
+ {
+ $self->{curInfo}->{exclusive} = 0;
+ }
+@@ -188,7 +213,7 @@
+ {
+ $self->{isReleased} = 1;
+ }
+- elsif (($tagname eq 'a') && ($self->{isReleased} eq 1))
++ elsif (($tagname eq 'span') && ($attr->{class} eq 'data') && ($self->{isReleased} eq 1))
+ {
+ $self->{isReleased} = 2;
+ }
+@@ -204,14 +229,6 @@
+ my ($self, $tagname) = @_;
+
+ $self->{inside}->{$tagname}--;
+- if ($self->{parsingList})
+- {
+- $self->{isGame} = 0
+- if ($tagname eq 'div');
+- }
+- elsif ($self->{parsingTips})
+- {
+- }
+ }
+
+ sub text
+@@ -220,20 +237,53 @@
+
+ if ($self->{parsingList})
+ {
+- if ($self->{isName})
++ if ($self->{isName} eq 1)
+ {
+- $origtext =~ /^(.*?)\s*\((.*?)\)\s*$/;
+- $self->{itemsList}[$self->{itemIdx}]->{name} = $1;
+- $self->{itemsList}[$self->{itemIdx}]->{platform} = $2;
+- $self->{itemsList}[$self->{itemIdx}]->{url} = $self->{itemsList}[$self->{itemIdx}]->{url} . 'tpfplatformtpf' . $self->{itemsList}[$self->{itemIdx}]->{platform};
+- $self->{isName} = 0;
++ $self->{itemsList}[$self->{itemIdx}]->{name} = $origtext;
++ $self->{isName} = 2;
++ }
++ elsif ($self->{isPlatform})
++ {
++ $self->{itemsList}[$self->{itemIdx}]->{platform} = $origtext;
++ $self->{isPlatform} = 0;
+ }
+ elsif ($self->{isDate})
+ {
+- $origtext =~ /^\s*Release Date:\s*(.*?)\s*$/ms;
+- $self->{itemsList}[$self->{itemIdx}]->{released} = $1;
++ $self->{itemsList}[$self->{itemIdx}]->{released} = $origtext;
+ $self->{isDate} = 0;
+ }
++ elsif ($self->{isEnd})
++ {
++ my @array = split(/,/,$self->{itemsList}[$self->{itemIdx}]->{platform});
++ my $element;
++
++ my $SaveName = $self->{itemsList}[$self->{itemIdx}]->{name};
++ my $SaveDate = $self->{itemsList}[$self->{itemIdx}]->{released};
++ my $SaveUrl = $self->{itemsList}[$self->{itemIdx}]->{url};
++ $self->{itemIdx}--;
++
++ foreach $element (@array)
++ {
++ # Enleve les blancs en debut de chaine
++ $element =~ s/^\s+//;
++ # Enleve les blancs en fin de chaine
++ $element =~ s/\s+$//;
++ # Pb : pas les memes noms de console entre l'affichage et l'url du jeu
++ $element =~ s/X360/XBOX360/i;
++ $element =~ s/WIIU/WII-U/i;
++ $element =~ s/AND/android/i;
++ $element =~ s/WINM/windows-mobile/i;
++ $element =~ s/GC/gamecube/i;
++ $element =~ s/FDS/famicomds/i;
++
++ $self->{itemIdx}++;
++ $self->{itemsList}[$self->{itemIdx}]->{name} = $SaveName;
++ $self->{itemsList}[$self->{itemIdx}]->{released} = $SaveDate;
++ $self->{itemsList}[$self->{itemIdx}]->{url} = $SaveUrl . 'platform/' . $element .'/';
++ $self->{itemsList}[$self->{itemIdx}]->{platform} = $element;
++ }
++ $self->{isEnd} = 0;
++ }
+ }
+ elsif ($self->{parsingTips})
+ {
+@@ -298,7 +348,6 @@
+ {
+ $origtext =~ s/\n//g;
+ $self->{curInfo}->{name} = $origtext;
+- $self->{curInfo}->{platform} = $self->{url_plateforme};
+ $self->{curInfo}->{exclusive} = 1;
+ $self->{isName} = 0;
+ }
+@@ -360,6 +409,8 @@
+ $self->{isName} = 0;
+ $self->{isGame} = 0;
+ $self->{isDate} = 0;
++ $self->{isPlatform} = 0;
++ $self->{isEnd} = 0;
+ $self->{isCheat} = 0;
+ $self->{isDesc} = 0;
+ $self->{isTip} = 0;
+@@ -372,10 +423,7 @@
+ $self->{isReleased} = 0;
+ $self->{isPlayers} = 0;
+ $self->{isBox} = 0;
+- $self->{isExclu} = 0;
+- $self->{url_plateforme} = '';
+ $self->{urlTips} = "";
+- $self->{SaveUrl} = "";
+
+ return $self;
+ }
+@@ -393,11 +441,12 @@
+ }
+ elsif ($self->{parsingList})
+ {
+- $html =~ s|Release Date|<tpfdatetpf>Release Date|g;
+ }
+ else
+ {
+- my $found = index($html,"Similar Games");
++ $html =~ s|Filter activeFilter|"><tpffiltertpf activefilter="|i;
++
++ my $found = index($html,">Games You May Like<");
+ if ( $found >= 0 )
+ {
+ $html = substr($html, 0, $found);
+@@ -440,19 +489,14 @@
+ my ($self, $word) = @_;
+
+ #return 'http://www.gamespot.com/search.html?qs='.$word.'&sub=g&stype=11&type=11';
+- return 'http://www.gamespot.com/pages/search/solr_search_ajax.php?q='.$word.'&type=game&offset=0&tags_only=false&sort=false';
++ #return 'http://www.gamespot.com/pages/search/solr_search_ajax.php?q='.$word.'&type=game&offset=0&tags_only=false&sort=false';
++ return 'http://www.gamespot.com/search/?qs='.$word.'&filter=summary';
+ #return 'http://www.gamespot.com/search.html?qs=' .$word. '&tag=masthead%3Bsearch';
+ }
+
+ sub getItemUrl
+ {
+ my ($self, $url) = @_;
+- my $found = index($url,"tpfplatformtpf");
+- if ( $found >= 0 )
+- {
+- $self->{url_plateforme} = substr($url, $found +length('tpfplatformtpf'),length($url)- $found -length('tpfplatformtpf'));
+- $url = substr($url, 0,$found);
+- }
+
+ return 'http://www.gamespot.com' . $url
+ if $url !~ /gamespot\.com/;
diff --git a/debian/patches/12-fix_gamespot_images.patch b/debian/patches/12-fix_gamespot_images.patch
new file mode 100644
index 0000000..5cd7675
--- /dev/null
+++ b/debian/patches/12-fix_gamespot_images.patch
@@ -0,0 +1,20 @@
+Description: fix GameSport games plugin box image loading
+Author: Marc Deslauriers <marc.deslauriers@canonical.com>
+Forwarded: http://forums.gcstar.org/viewtopic.php?id=18073
+
+Caution: this patch contains CRLF terminators,
+be careful when editing.
+
+Index: gcstar-1.7.0/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm
+===================================================================
+--- gcstar-1.7.0.orig/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm 2013-08-07 16:53:27.752460660 -0400
++++ gcstar-1.7.0/lib/gcstar/GCPlugins/GCgames/GCGameSpot.pm 2013-08-07 20:19:30.932342756 -0400
+@@ -102,7 +102,7 @@
+ {
+ $self->{curInfo}->{boxpic} = ' '
+ if $attr->{src} =~ /no_preview/;
+- if ((! $self->{curInfo}->{boxpic}) && ($attr->{src} =~ /[^xo]boxs[^c]/))
++ if ((! $self->{curInfo}->{boxpic}) && ($attr->{src} =~ /\/box\//))
+ {
+ $self->{curInfo}->{boxpic} = $attr->{src};
+ }
diff --git a/debian/patches/13-fix_musicbrainz.patch b/debian/patches/13-fix_musicbrainz.patch
new file mode 100644
index 0000000..92593a8
--- /dev/null
+++ b/debian/patches/13-fix_musicbrainz.patch
@@ -0,0 +1,25 @@
+Description: Fix the musicbrainz plugin
+Origin: upstream, http://forums.gcstar.org/viewtopic.php?id=3490
+
+--- gcstar-1.7.0.orig/lib/gcstar/GCPlugins/GCmusics/GCMusicBrainz.pm
++++ gcstar-1.7.0/lib/gcstar/GCPlugins/GCmusics/GCMusicBrainz.pm
+@@ -234,7 +234,7 @@ use GCPlugins::GCmusics::GCmusicsCommon;
+ my ($self, $word) = @_;
+
+ my $key = ($self->{searchField} eq 'artist') ? 'artist' : 'title';
+- return "http://musicbrainz.org/ws/1/release/?type=xml&$key=$word";
++ return "http://musicbrainz.org/ws/1/release/?fmt=xml&$key=$word";
+ }
+
+ sub getItemUrl
+@@ -247,8 +247,8 @@ use GCPlugins::GCmusics::GCmusicsCommon;
+ sub changeUrl
+ {
+ my ($self, $url) = @_;
+- $url =~ s|http://musicbrainz.org/album/(.*?)\.html|http://musicbrainz.org/ws/1/release/$1?type=xml&inc=artist+tracks+release-events+artist-rels+url-rels+ratings+labels+tags|;
+- $url =~ s|http://musicbrainz.org/release/(.*?)\.html|http://musicbrainz.org/ws/1/release/$1?type=xml&inc=artist+tracks+release-events+artist-rels+url-rels+ratings+labels+tags|;
++ $url =~ s|http://musicbrainz.org/album/(.*?)\.html|http://musicbrainz.org/ws/1/release/$1?fmt=xml&inc=artist+tracks+release-events+artist-rels+url-rels+ratings+labels+tags|;
++ $url =~ s|http://musicbrainz.org/release/(.*?)\.html|http://musicbrainz.org/ws/1/release/$1?fmt=xml&inc=artist+tracks+release-events+artist-rels+url-rels+ratings+labels+tags|;
+ return $url;
+ }
+
diff --git a/debian/patches/14-fix_imdb.patch b/debian/patches/14-fix_imdb.patch
new file mode 100644
index 0000000..1d7675b
--- /dev/null
+++ b/debian/patches/14-fix_imdb.patch
@@ -0,0 +1,45 @@
+Description: Fix the IMDb plugin
+Author: David Weinehall <tao@debian.org>
+
+Index: gcstar-1.7.0/lib/gcstar/GCPlugins/GCfilms/GCImdb.pm
+===================================================================
+--- gcstar-1.7.0.orig/lib/gcstar/GCPlugins/GCfilms/GCImdb.pm
++++ gcstar-1.7.0/lib/gcstar/GCPlugins/GCfilms/GCImdb.pm
+@@ -103,7 +103,14 @@ use GCPlugins::GCfilms::GCfilmsCommon;
+ elsif ($attr->{class} eq "title-extra")
+ {
+ $self->{insideOriginalTitle} = 1;
+- }
++ }
++ elsif ($self->{insideCastList})
++ {
++ if ($attr->{class} eq 'itemprop' && $attr->{itemprop} eq 'name')
++ {
++ $self->{insideActor} = 1;
++ }
++ }
+ }
+ elsif ($tagname eq "img")
+ {
+@@ -140,11 +147,7 @@ use GCPlugins::GCfilms::GCfilmsCommon;
+ {
+ if ($self->{insideCastList})
+ {
+- if ($attr->{class} eq 'name')
+- {
+- $self->{insideActor} = 1;
+- }
+- elsif ($attr->{class} eq 'character')
++ if ($attr->{class} eq 'character')
+ {
+ $self->{insideRole} = 1;
+ }
+@@ -236,7 +239,7 @@ use GCPlugins::GCfilms::GCfilmsCommon;
+
+ if ($self->{parsingList})
+ {
+- if ($self->{inside}->{h1} && $origtext !~ m/IMDb\s*Title\s*Search/i)
++ if ($self->{inside}->{title} && $origtext !~ m/Find\s-\sIMDb/i)
+ {
+ $self->{parsingEnded} = 1;
+ $self->{itemIdx} = 0;
diff --git a/debian/patches/16-fix_isbndb_plugin.patch b/debian/patches/16-fix_isbndb_plugin.patch
new file mode 100644
index 0000000..a845326
--- /dev/null
+++ b/debian/patches/16-fix_isbndb_plugin.patch
@@ -0,0 +1,252 @@
+Description: fix ISBNdb book plugin
+Author: Marc Deslauriers <marc.deslauriers@canonical.com>
+Forwarded: http://forums.gcstar.org/viewtopic.php?id=18072
+
+Index: gcstar-1.7.0/lib/gcstar/GCPlugins/GCbooks/GCISBNdb.pm
+===================================================================
+--- gcstar-1.7.0.orig/lib/gcstar/GCPlugins/GCbooks/GCISBNdb.pm 2011-07-17 08:23:00.000000000 -0400
++++ gcstar-1.7.0/lib/gcstar/GCPlugins/GCbooks/GCISBNdb.pm 2013-08-07 16:47:41.752463960 -0400
+@@ -42,49 +42,51 @@
+ if ($self->{parsingList})
+ {
+
+- if (($tagname eq 'div') && ($attr->{class} eq 'bookInfo') && ($self->{searchField} ne 'isbn'))
++ if (($tagname eq 'div') && ($attr->{class} eq 'bookSnippetBasic'))
+ {
+ $self->{isBook} = 1 ;
+ }
+- elsif (($tagname eq 'a') && ( index($attr->{href},"/d/book/") >= 0) && ($self->{isBook}))
++ elsif (($tagname eq 'a') && ( index($attr->{href},"/book/") >= 0) && ($self->{isBook}))
+ {
+ $self->{itemIdx}++;
+- $self->{itemsList}[$self->{itemIdx}]->{url} = "http://isbndb.com" . $attr->{href};
++ $self->{itemsList}[$self->{itemIdx}]->{url} = $attr->{href};
++ }
++ elsif (($tagname eq 'h1') && ($self->{isBook}))
++ {
+ $self->{isTitle} = 1 ;
+ }
+- elsif (($tagname eq 'a') && ( index($attr->{href},"/d/person/") >= 0) && ($self->{isBook}))
++ elsif (($tagname eq 'a') && ( index($attr->{href},"/author/") >= 0) && ($self->{isBook}))
+ {
+ $self->{isAuthor} = 1 ;
+ }
+- elsif (($tagname eq 'a') && ( index($attr->{href},"/d/publisher/") >= 0) && ($self->{isBook}))
++ elsif (($tagname eq 'a') && ( index($attr->{href},"/publisher/") >= 0) && ($self->{isBook}))
+ {
+ $self->{isPublisher} = 1 ;
+ }
+- elsif (($tagname eq 'a') && ( index($attr->{onclick},"isbndbTrackBuy") >= 0) && ($self->{itemIdx} eq '-1'))
+- {
+- $self->{itemIdx}++;
+- $self->{itemsList}[$self->{itemIdx}]->{url} = $self->{loadedUrl} ;
+- }
+- elsif (($tagname eq 'span') && ($attr->{class} eq 'inactive'))
++ elsif ($tagname eq 'span')
+ {
+ $self->{isBook} = 0 ;
+ }
+ }
+ else
+ {
+- if ($tagname eq 'title')
++ if (($tagname eq 'div') && ($attr->{class} eq 'bookSnippetBasic'))
++ {
++ $self->{isBook} = 1 ;
++ }
++ if (($tagname eq 'h1') && ($self->{isBook}))
+ {
+ $self->{isTitle} = 1 ;
+ }
+- elsif (($tagname eq 'a') && ( index($attr->{href},"/d/person/") >= 0))
++ elsif (($tagname eq 'a') && ( index($attr->{href},"/author/") >= 0))
+ {
+ $self->{isAuthor} = 1 ;
+ }
+- elsif (($tagname eq 'a') && ( index($attr->{href},"/d/publisher/") >= 0))
++ elsif (($tagname eq 'a') && ( index($attr->{href},"/publisher/") >= 0))
+ {
+ $self->{isPublisher} = 1 ;
+ }
+- elsif (($tagname eq 'a') && ( index($attr->{href},"/c/Library_Shelves/Dewey") >= 0))
++ elsif (($tagname eq 'a') && ( index($attr->{href},"/subject/") >= 0))
+ {
+ $self->{isGenre} = 1 ;
+ }
+@@ -104,6 +106,10 @@
+ $self->{curInfo}->{cover} = $array[0];
+ }
+ }
++ elsif (($tagname eq 'div') && ($attr->{id} eq 'rightColumn'))
++ {
++ $self->{isBook} = 0 ;
++ }
+ }
+ }
+
+@@ -127,14 +133,34 @@
+ }
+ elsif ($self->{isAuthor})
+ {
++ my @nom_prenom = split(/,/,$origtext);
++ # Enleve les blancs en debut de chaine
++ $nom_prenom[0] =~ s/^\s//;
++ $nom_prenom[1] =~ s/^\s//;
++ # Enleve les blancs en fin de chaine
++ $nom_prenom[0] =~ s/\s+$//;
++ $nom_prenom[1] =~ s/\s+$//;
+ if ($self->{itemsList}[$self->{itemIdx}]->{authors} eq '')
+ {
+- $self->{itemsList}[$self->{itemIdx}]->{authors} = $origtext;
++ if ($nom_prenom[1] ne '')
++ {
++ $self->{itemsList}[$self->{itemIdx}]->{authors} = $nom_prenom[1] ." " . $nom_prenom[0];
++ }
++ else
++ {
++ $self->{itemsList}[$self->{itemIdx}]->{authors} = $nom_prenom[0];
++ }
+ }
+ else
+ {
+- $self->{itemsList}[$self->{itemIdx}]->{authors} .= ', ';
+- $self->{itemsList}[$self->{itemIdx}]->{authors} .= $origtext;
++ if ($nom_prenom[1] ne '')
++ {
++ $self->{itemsList}[$self->{itemIdx}]->{authors} .= ", " . $nom_prenom[1] ." " . $nom_prenom[0];
++ }
++ else
++ {
++ $self->{itemsList}[$self->{itemIdx}]->{authors} .= ", " . $nom_prenom[0];
++ }
+ }
+ $self->{isAuthor} = 0 ;
+ }
+@@ -157,8 +183,35 @@
+ }
+ elsif ($self->{isAuthor})
+ {
+- $self->{curInfo}->{authors} .= $origtext;
+- $self->{curInfo}->{authors} .= ",";
++ my @nom_prenom = split(/,/,$origtext);
++ # Enleve les blancs en debut de chaine
++ $nom_prenom[0] =~ s/^\s//;
++ $nom_prenom[1] =~ s/^\s//;
++ # Enleve les blancs en fin de chaine
++ $nom_prenom[0] =~ s/\s+$//;
++ $nom_prenom[1] =~ s/\s+$//;
++ if ($self->{curInfo}->{authors} eq '')
++ {
++ if ($nom_prenom[1] ne '')
++ {
++ $self->{curInfo}->{authors} = $nom_prenom[1] ." " . $nom_prenom[0];
++ }
++ else
++ {
++ $self->{curInfo}->{authors} = $nom_prenom[0];
++ }
++ }
++ else
++ {
++ if ($nom_prenom[1] ne '')
++ {
++ $self->{curInfo}->{authors} .= ", " . $nom_prenom[1] ." " . $nom_prenom[0];
++ }
++ else
++ {
++ $self->{curInfo}->{authors} .= ", " . $nom_prenom[0];
++ }
++ }
+ $self->{isAuthor} = 0 ;
+ }
+ elsif ($self->{isPublisher})
+@@ -168,9 +221,9 @@
+ }
+ elsif ($self->{isAnalyse})
+ {
+- $self->{isFormat} = 1 if ($origtext =~ m/Book Details:/i);
+- $self->{isDescription} = 1 if ($origtext =~ m/Notes:/i);
+- $self->{isDescription} = 1 if ($origtext =~ m/Summary:/i);
++ $self->{isFormat} = 1 if ($origtext =~ m/Book Details/i);
++ $self->{isDescription} = 1 if ($origtext =~ m/Notes/i);
++ $self->{isDescription} = 1 if ($origtext =~ m/Summary/i);
+
+ $self->{isAnalyse} = 0 ;
+ }
+@@ -233,14 +286,25 @@
+ }
+ elsif ($self->{isGenre})
+ {
+- my @array = split(/--/,$origtext);
++ $origtext =~ s/ -- /\//gi;
+
+- $self->{curInfo}->{genre} = $array[1];
+ # Enleve les blancs en debut de chaine
+- $self->{curInfo}->{genre} =~ s/^\s+//;
++ $origtext =~ s/^\s+//;
++ # Enleve les blancs en fin de chaine
++ $origtext =~ s/\s+$//g;
++
++ if ($self->{curInfo}->{genre} eq '')
++ {
++ $self->{curInfo}->{genre} = $origtext;
++ }
++ else
++ {
++ $self->{curInfo}->{genre} .= ", " . $origtext;
++ }
+ $self->{isGenre} = 0 ;
+ }
+- elsif (($origtext =~ m/ISBN:/i) && ($self->{curInfo}->{isbn} eq ''))
++ elsif ((($origtext =~ m/ISBN10:/i) && ($self->{curInfo}->{isbn} eq '')) ||
++ ($origtext =~ m/ISBN13:/i))
+ {
+ my @array = split(/:/,$origtext);
+
+@@ -297,7 +361,10 @@
+ else
+ {
+ $html =~ s|<u>||gi;
+- $html =~ s|<li>|\n* |gi;
++ $html =~ s|<li>||gi;
++ $html =~ s|</li>||gi;
++ $html =~ s|<ul>||gi;
++ $html =~ s|</ul>||gi;
+ $html =~ s|<br>|\n|gi;
+ $html =~ s|<br />|\n|gi;
+ $html =~ s|<b>||gi;
+@@ -312,7 +379,7 @@
+ $html =~ s|&#133;|...|gi;
+ $html =~ s|\x{8C}|OE|gi;
+ $html =~ s|\x{9C}|oe|gi;
+-
++ $html =~ s|\x{94}|\n|gi;
+ }
+
+ return $html;
+@@ -321,14 +388,13 @@
+ sub getSearchUrl
+ {
+ my ($self, $word) = @_;
+-
+ if ($self->{searchField} eq 'isbn')
+ {
+- return "http://isbndb.com/search-all.html?kw=" .$word;
++ return "http://isbndb.com/search/all?query=" .$word;
+ }
+ else
+ {
+- return "http://isbndb.com/search-title.html?kw=" .$word ."&isn=";
++ return "http://isbndb.com/search/books/1?query=" .$word;
+ }
+
+ }
+@@ -348,7 +414,7 @@
+ sub getCharset
+ {
+ my $self = shift;
+- return "ISO-8859-15";
++ return "UTF-8";
+ }
+
+ sub getAuthor
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2ffa531
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,9 @@
+10-remove-system-calls.patch
+05-keywords_desktop.patch
+01_set_usr_lib.patch
+03_change_default_browser.patch
+11-fix_gamespot_plugin.patch
+12-fix_gamespot_images.patch
+13-fix_musicbrainz.patch
+14-fix_imdb.patch
+16-fix_isbndb_plugin.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..849e8b9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,34 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+#
+# Hardening
+#
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+
+%:
+ dh $@
+
+override_dh_install:
+ dh_install
+ ./install --noclean --text --prefix=$(CURDIR)/debian/gcstar/usr
+ install -D -m 0644 share/applications/gcstar.xml \
+ debian/gcstar/usr/share/mime/packages/gcstar.xml
+ chmod 0744 debian/gcstar/usr/share/gcstar/xslt/applyXSLT.pl
+#
+# remove misplaced manpage
+#
+ rm -f debian/gcstar/usr/man/man1/gcstar.1.gz
+ rmdir --ignore-fail-on-non-empty debian/gcstar/usr/man/man1
+ rmdir --ignore-fail-on-non-empty debian/gcstar/usr/man
+#
+# remove additional licenses
+#
+ rm -f debian/gcstar/usr/share/gcstar/fonts/COPYING
+ rm -f debian/gcstar/usr/share/gcstar/fonts/License.txt
+ rm -f debian/gcstar/usr/share/gcstar/LICENSE
+
+override_dh_installman:
+ dh_installman man/gcstar.1
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..22a4de9
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+compression = xz
+compression-level = 9
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a80d113
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://download.gna.org/gcstar/gcstar-([\d\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))