summaryrefslogtreecommitdiff
path: root/packages/debian
diff options
context:
space:
mode:
Diffstat (limited to 'packages/debian')
-rw-r--r--packages/debian/changelog5
-rw-r--r--packages/debian/compat1
-rw-r--r--packages/debian/control25
-rw-r--r--packages/debian/copyright26
-rw-r--r--packages/debian/dirs1
-rw-r--r--packages/debian/docs3
-rw-r--r--packages/debian/gcstar.install2
-rw-r--r--packages/debian/gcstar_logo.xpm291
-rw-r--r--packages/debian/lintian/gcstar2
-rw-r--r--packages/debian/menu1
-rw-r--r--packages/debian/patches/00list5
-rw-r--r--packages/debian/patches/01-set_usr_lib.dpatch26
-rw-r--r--packages/debian/patches/02gzip-manpage.dpatch19
-rw-r--r--packages/debian/patches/03_change_default_browser.dpatch19
-rw-r--r--packages/debian/patches/04-install-set_usr_lib.dpatch21
-rw-r--r--packages/debian/patches/07_fix_manpath.dpatch19
-rw-r--r--packages/debian/postinst8
-rw-r--r--packages/debian/postrm8
-rw-r--r--packages/debian/rules112
19 files changed, 594 insertions, 0 deletions
diff --git a/packages/debian/changelog b/packages/debian/changelog
new file mode 100644
index 0000000..11e8c4d
--- /dev/null
+++ b/packages/debian/changelog
@@ -0,0 +1,5 @@
+gcstar (1.5.0-1ubuntu1) jaunty; urgency=low
+
+ * Initial release
+
+ -- Nyall <nyall@zombiepigs.net> Sun, 20 Sep 2009 10:27:40 -0300
diff --git a/packages/debian/compat b/packages/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/packages/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/packages/debian/control b/packages/debian/control
new file mode 100644
index 0000000..2085fb1
--- /dev/null
+++ b/packages/debian/control
@@ -0,0 +1,25 @@
+Source: gcstar
+Section: x11
+Priority: optional
+Maintainer: Alexander Wirt <formorer@debian.org>, Nyall <nyall@zombiepigs.net>
+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.0
+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, libgd-gd2-perl, libgd-graph-perl, libgd-text-perl, libdate-calc-perl, ${perl:Depends}
+Recommends: libgtk2-spell-perl, libdatetime-format-strptime-perl, libmp3-info-perl, libcddb-perl, libnet-freedb-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 collections by many criteria.
diff --git a/packages/debian/copyright b/packages/debian/copyright
new file mode 100644
index 0000000..13dd2bf
--- /dev/null
+++ b/packages/debian/copyright
@@ -0,0 +1,26 @@
+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: 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'.
diff --git a/packages/debian/dirs b/packages/debian/dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/packages/debian/dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/packages/debian/docs b/packages/debian/docs
new file mode 100644
index 0000000..e8d31ce
--- /dev/null
+++ b/packages/debian/docs
@@ -0,0 +1,3 @@
+README
+README.fr
+CHANGELOG.fr
diff --git a/packages/debian/gcstar.install b/packages/debian/gcstar.install
new file mode 100644
index 0000000..e16d720
--- /dev/null
+++ b/packages/debian/gcstar.install
@@ -0,0 +1,2 @@
+share/applications/gcstar.desktop /usr/share/applications/
+debian/gcstar_logo.xpm /usr/share/pixmaps/
diff --git a/packages/debian/gcstar_logo.xpm b/packages/debian/gcstar_logo.xpm
new file mode 100644
index 0000000..d11f79e
--- /dev/null
+++ b/packages/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/packages/debian/lintian/gcstar b/packages/debian/lintian/gcstar
new file mode 100644
index 0000000..41006db
--- /dev/null
+++ b/packages/debian/lintian/gcstar
@@ -0,0 +1,2 @@
+gcstar: script-not-executable ./usr/share/gcstar/helpers/xdg-open
+gcstar: script-not-executable ./usr/share/gcstar/xslt/applyXSLT.pl
diff --git a/packages/debian/menu b/packages/debian/menu
new file mode 100644
index 0000000..d61295c
--- /dev/null
+++ b/packages/debian/menu
@@ -0,0 +1 @@
+?package(gcfilms):needs="X11" section="Apps/Office" title="gcfilms" command="/usr/bin/gcfilms" icon="/usr/share/gcfilms/gcfilms.png"
diff --git a/packages/debian/patches/00list b/packages/debian/patches/00list
new file mode 100644
index 0000000..f67ce62
--- /dev/null
+++ b/packages/debian/patches/00list
@@ -0,0 +1,5 @@
+01-set_usr_lib.dpatch
+02gzip-manpage.dpatch
+03_change_default_browser.dpatch
+04-install-set_usr_lib
+07_fix_manpath.dpatch
diff --git a/packages/debian/patches/01-set_usr_lib.dpatch b/packages/debian/patches/01-set_usr_lib.dpatch
new file mode 100644
index 0000000..8fd45ca
--- /dev/null
+++ b/packages/debian/patches/01-set_usr_lib.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## test.dpatch by <nyall@crackfox>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstarzombiepig-1.6~/bin/gcstar gcstarzombiepig-1.6/bin/gcstar
+--- gcstarzombiepig-1.6~/bin/gcstar 2009-09-20 17:12:25.000000000 -0300
++++ gcstarzombiepig-1.6/bin/gcstar 2009-09-20 17:29:43.000000000 -0300
+@@ -44,12 +44,12 @@
+ 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";
++ unshift @INC, "$RealBin/../share/gcstar/lib";
+ }
+
+ # For win32, redirect all the output to files
diff --git a/packages/debian/patches/02gzip-manpage.dpatch b/packages/debian/patches/02gzip-manpage.dpatch
new file mode 100644
index 0000000..6829218
--- /dev/null
+++ b/packages/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;
+
diff --git a/packages/debian/patches/03_change_default_browser.dpatch b/packages/debian/patches/03_change_default_browser.dpatch
new file mode 100644
index 0000000..fbc093b
--- /dev/null
+++ b/packages/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 => "",
diff --git a/packages/debian/patches/04-install-set_usr_lib.dpatch b/packages/debian/patches/04-install-set_usr_lib.dpatch
new file mode 100644
index 0000000..0a8dc3a
--- /dev/null
+++ b/packages/debian/patches/04-install-set_usr_lib.dpatch
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## test.dpatch by <nyall@crackfox>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstar~/install gcstar/install
+--- gcstar~/install 2009-09-20 20:49:02.000000000 -0300
++++ gcstar/install 2009-09-20 20:50:50.000000000 -0300
+@@ -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';
diff --git a/packages/debian/patches/07_fix_manpath.dpatch b/packages/debian/patches/07_fix_manpath.dpatch
new file mode 100644
index 0000000..53fb281
--- /dev/null
+++ b/packages/debian/patches/07_fix_manpath.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## test.dpatch by <nyall@crackfox>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstarzombiepig-1.6~/install gcstarzombiepig-1.6/install
+--- gcstarzombiepig-1.6~/install 2009-09-20 17:32:03.000000000 -0300
++++ gcstarzombiepig-1.6/install 2009-09-20 17:33:56.000000000 -0300
+@@ -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
+
diff --git a/packages/debian/postinst b/packages/debian/postinst
new file mode 100644
index 0000000..80dc2f0
--- /dev/null
+++ b/packages/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+update-desktop-database
+update-mime-database /usr/share/mime
+gtk-update-icon-cache /usr/share/icons/hicolor
+
+exit 0
+
diff --git a/packages/debian/postrm b/packages/debian/postrm
new file mode 100644
index 0000000..80dc2f0
--- /dev/null
+++ b/packages/debian/postrm
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+update-desktop-database
+update-mime-database /usr/share/mime
+gtk-update-icon-cache /usr/share/icons/hicolor
+
+exit 0
+
diff --git a/packages/debian/rules b/packages/debian/rules
new file mode 100644
index 0000000..edacc8a
--- /dev/null
+++ b/packages/debian/rules
@@ -0,0 +1,112 @@
+#!/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=1
+
+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_clean -k
+ dh_installdirs
+ ./install --text --prefix=$(CURDIR)/debian/gcstar/usr
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_16x16.png \
+ debian/gcstar/usr/share/icons/hicolor/16x16/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_22x22.png \
+ debian/gcstar/usr/share/icons/hicolor/22x22/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_24x24.png \
+ debian/gcstar/usr/share/icons/hicolor/24x24/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_32x32.png \
+ debian/gcstar/usr/share/icons/hicolor/32x32/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_36x36.png \
+ debian/gcstar/usr/share/icons/hicolor/36x36/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_48x48.png \
+ debian/gcstar/usr/share/icons/hicolor/48x48/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_64x64.png \
+ debian/gcstar/usr/share/icons/hicolor/64x64/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_72x72.png \
+ debian/gcstar/usr/share/icons/hicolor/72x72/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_96x96.png \
+ debian/gcstar/usr/share/icons/hicolor/96x96/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_128x128.png \
+ debian/gcstar/usr/share/icons/hicolor/128x128/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_192x192.png \
+ debian/gcstar/usr/share/icons/hicolor/192x192/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_256x256.png \
+ debian/gcstar/usr/share/icons/hicolor/256x256/apps/gcstar.png
+ install -D -m 0644 debian/gcstar/usr/share/gcstar/icons/gcstar_scalable.svg \
+ debian/gcstar/usr/share/icons/hicolor/scalable/apps/gcstar.svg
+ install -D -m 0644 share/applications/gcstar.xml \
+ debian/gcstar/usr/share/mime/packages/gcstar.xml
+
+ #this is also in the copyright file
+ -rm debian/gcstar/usr/share/gcstar/LICENSE
+
+ # Installing lintian overrides
+ for LINTIAN in debian/lintian/*; \
+ do \
+ install -D -m 644 $$LINTIAN debian/`basename $$LINTIAN`/usr/share/lintian/overrides/`basename $$LINTIAN` || exit 1; \
+ done
+
+
+# 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_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