--- kicad-0.0.20100314.orig/debian/packagesrc.sh
+++ kicad-0.0.20100314/debian/packagesrc.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+ver=`cat ../trunk/debian/changelog | head -n1 | cut -f2 -d\( | cut -f1 -d-`
+debver=`cat ../trunk/debian/changelog | head -n1 | cut -f2 -d- | cut -f1 -d\)`
+svnpath="../../trunk" #extra .. as we'll be down another dir when used
+signer="richardaburton@gmail.com"
+
+mkdir kicad-${ver}.orig
+
+if [ "${debver}" = "1" ]; then
+
+ cd kicad-${ver}.orig
+ svn export ${svnpath}/kicad
+ svn export ${svnpath}/kicad-doc
+ svn export ${svnpath}/kicad-library
+ # remove any unwanted stuff
+ rm -rf kicad/kicad/minizip
+ rm -rf kicad-doc/doc/help/{de,es,it}
+ rm -rf kicad-doc/presentations
+ cd ..
+
+ cp -a kicad-${ver}.orig kicad-${ver}
+
+else
+ tar zxf kicad_${ver}.orig.tar.gz
+ mv kicad_${ver}.orig kicad_${ver}
+fi
+
+cd kicad-${ver}
+svn export ${svnpath}/debian
+cd ..
+
+dpkg-source -b kicad-${ver}
+debsign -m${signer} kicad_${ver}-${debver}.dsc
+
+#rm -rf kicad-${ver}
+
--- kicad-0.0.20100314.orig/debian/README.source
+++ kicad-0.0.20100314/debian/README.source
@@ -0,0 +1,13 @@
+To package the upstream source the 3 svn repos are extracted to the same folder:
+<packaging folder>/
+ kicad/
+ kicad-doc/
+ kicad-library/
+
+Then, because we aren't building and it has a different license, we remove the
+kicad/kicad/minizip/ folder.
+We also remove some outdated docs, stuff that we don't ship because it's not up
+to date. As soon as it gets updated it will get restored.
+
+See packagesrc.sh, the script used to build the source package.
+
--- kicad-0.0.20100314.orig/debian/copyright
+++ kicad-0.0.20100314/debian/copyright
@@ -0,0 +1,141 @@
+This package was debianized by Richard A Burton <richardaburton@gmail.com> on
+Tue, 27 Jun 2006 10:48:13 +0100.
+
+It was downloaded from http://iut-tice.ujf-grenoble.fr/cao/
+
+Upstream Author: Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
+
+--------------------------------------------------------------------------------
+
+Copyright: 2000-2008, Jean-Pierre Charras
+License:
+ Software: GPL v2
+
+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; version 2 dated June, 1991.
+
+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 the Debian system in the file /usr/share/common-licenses/GPL-2.
+
+--------------------------------------------------------------------------------
+
+files 3d-viewer/trackball.{h,cpp}:
+Copyright 1993, 1994, Silicon Graphics, Inc.
+ *
+ * (c) Copyright 1993, 1994, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
+ */
+
+--------------------------------------------------------------------------------
+
+files in kicad/polygon/kbool/:
+Copyright: 2001-2004 (C) Probably Klaas Holwerda
+Licence: wxWidgets Licence
+
+--------------------------------------------------------------------------------
+
+Copyright: 2000-2008, Jean-Pierre Charras
+License:
+ Documentation:
+ KiCad Free Documentation Licence
+ ================================
+
+ Copyright (c) jean-pierre Charras
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this licence document, but changing it is not allowed.
+
+ KICAD FREE DOCUMENTATION LICENCE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 1. Permission is granted to make and distribute verbatim copies of this
+ manual or piece of documentation provided any copyright notice and this
+ permission notice are preserved on all copies.
+
+ 2. Permission is granted to process this file or document through a
+ document processing system and, at your option and the option of any third
+ party, print the results, provided a printed document carries a copying
+ permission notice identical to this one.
+
+ 3. Permission is granted to copy and distribute modified versions of this
+ manual or piece of documentation under the conditions for verbatim
+ copying, provided also that any sections describing licensing conditions
+ for this manual, such as, in particular, the GNU General Public Licence,
+ the GNU Library General Public Licence, and any wxWindows Licence are
+ included exactly as in the original, and provided that the entire
+ resulting derived work is distributed under the terms of a permission
+ notice identical to this one.
+
+ 4. Permission is granted to copy and distribute translations of this
+ manual or piece of documentation into another language, under the above
+ conditions for modified versions, except that sections related to
+ licensing, including this paragraph, may also be included in translations
+ approved by the copyright holders of the respective licence documents in
+ addition to the original French or English.
+
+ WARRANTY DISCLAIMER
+
+ 5. BECAUSE THIS MANUAL OR PIECE OF DOCUMENTATION IS LICENSED FREE OF CHARGE,
+ THERE IS NO WARRANTY FOR IT, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
+ PARTIES PROVIDE THIS MANUAL OR PIECE OF DOCUMENTATION "AS IS" WITHOUT
+ WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF
+ THE MANUAL OR PIECE OF DOCUMENTATION IS WITH YOU. SHOULD THE MANUAL OR
+ PIECE OF DOCUMENTATION PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+ NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 6. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL
+ ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+ REDISTRIBUTE THE MANUAL OR PIECE OF DOCUMENTATION AS PERMITTED ABOVE, BE
+ LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+ MANUAL OR PIECE OF DOCUMENTATION (INCLUDING BUT NOT LIMITED TO LOSS OF
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+ PARTIES OR A FAILURE OF A PROGRAM BASED ON THE MANUAL OR PIECE OF
+ DOCUMENTATION TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR
+ OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+--------------------------------------------------------------------------------
+
+The Debian packaging is (C)2006-2010 Richard A Burton <richardaburton@gmail.com>
+and is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'.
--- kicad-0.0.20100314.orig/debian/kicad.desktop
+++ kicad-0.0.20100314/debian/kicad.desktop
@@ -0,0 +1,15 @@
+[Desktop Entry]
+MimeType=text/pro
+Name=KiCad
+Exec=kicad
+Icon=icon_kicad.xpm
+Categories=Development;Engineering;Electronics
+Type=Application
+Terminal=false
+Comment=PCB-Suite
+GenericName[en]=KiCad - project manager
+GenericName[ru]=KiCad - менеджер проектов
+GenericName[nl_NL]=KiCad - Project Beheerder
+Comment[en]=Electrical schematic and PCB design suite
+Comment[ru]=Комплекс для разработки электрических схем и печатных плат
+Comment[nl_NL]=Elektrische schema's en PCB ontwerp Suite
--- kicad-0.0.20100314.orig/debian/changelog
+++ kicad-0.0.20100314/debian/changelog
@@ -0,0 +1,88 @@
+kicad (0.0.20100314-1) unstable; urgency=low
+
+ * New upstream (Closes: #575018).
+ * Update Standards-Version to 3.8.4 (no changes needed).
+
+ -- Richard Antony Burton <richardaburton@gmail.com> Sun, 28 Mar 2010 12:58:23 +0000
+
+kicad (0.0.20090216-1) unstable; urgency=low
+
+ * New upstream release. (Closes: #529628)
+ * - Upstream fix. (Closes: #532367)
+ * - Upstream fix. (Closes: #509956)
+ * Move shortcut to electronics section. (Closes: #536307)
+ * Suggest documentation. (Closes: #502546)
+ * Update Standards-Version to 3.8.3 (no changes needed).
+
+ -- Richard Antony Burton <richardaburton@gmail.com> Sat, 26 Sep 2009 12:47:27 +0000
+
+kicad (0.0.20080825c-1) unstable; urgency=low
+
+ * New upstream release. (Closes: #496897)
+ * Use new cmake build system.
+ * Use new svn repository layout.
+ * Build using wxWidgets 2.8. (Closes: #398615)
+ * Require debhelper 6 to get fix for 459426.
+ * Upstream performance improvement for redraw. (Closes: #469516)
+ * Moved examples to /usr/share/doc/kicad/demos
+ * Update Standards-Version to 3.8.0 (no changes needed).
+ * Add more language packages, for tutorials.
+ * Only en & fr manuals included, rest not currently maintained upstream.
+
+ -- Richard Antony Burton <richardaburton@gmail.com> Sun, 21 Sep 2008 19:58:47 +0100
+
+kicad (0.0.20071129a-1) unstable; urgency=low
+
+ * New upstream release.
+ * Fix menu icon (not the gnome one).
+ * Update Standards-Version to 3.7.3.0 (Debian menu structure change only).
+
+ -- Richard Antony Burton <richardaburton@gmail.com> Wed, 19 Dec 2007 17:04:33 +0000
+
+kicad (0.0.20070702-1) unstable; urgency=low
+
+ * New upstream release.
+ * Added man pages for binaries. (Closes: #429223)
+ * All patches from previous version now included upstream.
+
+ -- Richard Antony Burton <richardaburton@gmail.com> Sun, 08 Jul 2007 09:15:42 +0100
+
+kicad (0.0.20070525-1) unstable; urgency=low
+
+ * New upstream release (Closes: #423873)
+ * Install help files to correct location (Closes: #404783)
+ * For languages without native help files the English doc package is pulled in
+ with the non-English doc package, so there is at least some help.
+ * Not removing all binaries removed during 'clean' (Closes: #424455)
+ * Patch for the 3D Display image export problem (Closes: #423882)
+
+ -- Richard Antony Burton <richardaburton@gmail.com> Sun, 27 May 2007 13:43:01 +0100
+
+kicad (0.0.20060829-2) unstable; urgency=low
+
+ * Fixing wrong location of helpfiles (Closes: #404783) (djp)
+
+ -- Daniel J. Priem <danielpriem@flexserv.de> Thu, 28 Dec 2006 12:20:31 +0100
+
+kicad (0.0.20060829-1) unstable; urgency=low
+
+ * now binNMU safe (rab)
+ * This version is 20060828 but since i forgot something inside the orig.tar.gz i must increase the version number (djp)
+ * Added newer documentation (djp)
+ * Added some updated po files (djp)
+ * Added italian help files (djp)
+
+ -- Daniel J. Priem <danielpriem@flexserv.de> Sun, 12 Nov 2006 21:40:23 +0100
+
+kicad (0.0.20060828-1) unstable; urgency=low
+
+ * New upstream.
+ * Split help files out into separate language-specific packages.
+
+ -- Debian Kicad Team <kicad-devel@lists.mose.flexserv.de> Fri, 3 Nov 2006 19:33:07 +0100
+
+kicad (0.0.20060626-1) unstable; urgency=low
+
+ * Initial release (Closes: #278581)
+
+ -- Richard Antony Burton <richardaburton@hotmail.com> Sat, 30 Sep 2006 22:24:06 +0200
--- kicad-0.0.20100314.orig/debian/kicad-common.dirs
+++ kicad-0.0.20100314/debian/kicad-common.dirs
@@ -0,0 +1 @@
+usr/share/kicad
--- kicad-0.0.20100314.orig/debian/kicad.dirs
+++ kicad-0.0.20100314/debian/kicad.dirs
@@ -0,0 +1,4 @@
+usr/bin
+usr/lib/kicad/plugins
+usr/share/applications
+usr/share/pixmaps
--- kicad-0.0.20100314.orig/debian/kicad.menu
+++ kicad-0.0.20100314/debian/kicad.menu
@@ -0,0 +1,2 @@
+?package(kicad):needs="X11" section="Applications/Science/Electronics"\
+ title="KICAD" icon="/usr/share/pixmaps/icon_kicad.xpm" command="/usr/bin/kicad"
--- kicad-0.0.20100314.orig/debian/control
+++ kicad-0.0.20100314/debian/control
@@ -0,0 +1,106 @@
+Source: kicad
+Section: electronics
+Priority: optional
+Maintainer: Debian Kicad Team <kicad-devel@lists.mose.flexserv.de>
+Uploaders: Richard Antony Burton <richardaburton@gmail.com>, Daniel J. Priem <danielpriem@flexserv.de>
+Build-Depends: debhelper (>= 6), dpatch, libx11-dev, libglu1-mesa-dev, libgl1-mesa-dev, mesa-common-dev, libwxbase2.8-dev, libwxgtk2.8-dev, libboost-dev, cmake (>= 2.6.0)
+Standards-Version: 3.8.4
+Homepage: http://iut-tice.ujf-grenoble.fr/kicad/
+
+Package: kicad
+Architecture: any
+Depends: kicad-common (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}, zlib-bin, extra-xdg-menus
+Replaces: kicad-common (<< 0.0.20071129a-1)
+Suggests: kicad-doc-en | kicad-doc-fr | kicad-doc-de | kicad-doc-es | kicad-doc-hu | kicad-doc-ru | kicad-doc-zh-cn
+Description: Electronic schematic and PCB design software
+ Kicad is a suite of programs for the creation of printed circuit boards.
+ It includes a schematic editor, a PCB layout tool, support tools and a
+ 3D viewer to display a finished & fully populated PCB.
+ .
+ Kicad is made up of 5 main components:
+ .
+ * kicad - project manager
+ * eeschema - schematic editor
+ * pcbnew - PCB editor
+ * gerbview - GERBER viewer
+ * cvpcb - footprint selector for components
+ .
+ Libraries:
+ * Both eeschema and pcbnew have library managers and editors for their
+ components and footprints
+ * You can easily create, edit, delete and exchange library items
+ * Documentation files can be associated with components, footprints and key
+ words, allowing a fast search by function
+ * Very large libraries are available for schematic components and footprints
+ * Most components have corresponding 3D models
+
+Package: kicad-common
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: kicad
+Description: Common files used by kicad
+ This package contains the component libraries and language files for Kicad.
+
+Package: kicad-doc-de
+Architecture: all
+Depends: ${misc:Depends}
+Description: Kicad help files (German)
+ This package provides documentation for Kicad in German.
+ .
+ This package does not provide a German translation of the manual, only the
+ tutorial. Manual available in the French & English packages only.
+
+Package: kicad-doc-en
+Architecture: all
+Depends: ${misc:Depends}
+Description: Kicad help files (English)
+ This package provides documentation for Kicad in English.
+
+Package: kicad-doc-es
+Architecture: all
+Depends: ${misc:Depends}
+Description: Kicad help files (Spanish)
+ This package provides documentation for Kicad in Spanish.
+ .
+ This package does not provide a Spanish translation of the manual, only the
+ tutorial. Manual available in the French & English packages only.
+
+Package: kicad-doc-fr
+Architecture: all
+Depends: ${misc:Depends}
+Description: Kicad help files (French)
+ This package provides documentation for Kicad in French.
+
+Package: kicad-doc-hu
+Architecture: all
+Depends: ${misc:Depends}
+Description: Kicad help files (Hungarian)
+ This package provides documentation for Kicad in Hungarian.
+ .
+ This package does not provide a Hungarian translation of the manual, only the
+ tutorial. Manual available in the French & English packages only.
+
+Package: kicad-doc-pt
+Architecture: all
+Depends: ${misc:Depends}
+Description: Kicad help files (Portuguese)
+ This package provides documentation for Kicad in Portuguese.
+
+Package: kicad-doc-ru
+Architecture: all
+Depends: ${misc:Depends}
+Description: Kicad help files (Russian)
+ This package provides documentation for Kicad in Russian.
+ .
+ This package does not provide a Russian translation of the manual, only the
+ tutorial. Manual available in the French & English packages only.
+
+Package: kicad-doc-zh-cn
+Architecture: all
+Depends: ${misc:Depends}
+Description: Kicad help files (Simplified Chinese)
+ This package provides documentation for Kicad in Simplified Chinese.
+ .
+ This package does not provide a Simplified Chinese translation of the manual,
+ only the tutorial. Manual available in the French & English packages only.
+
--- kicad-0.0.20100314.orig/debian/rules
+++ kicad-0.0.20100314/debian/rules
@@ -0,0 +1,148 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+# Make sure no svn parts inside the deb
+DH_ALWAYS_EXCLUDE=CVS:.svn
+export DH_ALWAYS_EXCLUDE
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# .NOTPARALLEL:
+
+# get patch & unpatch targets for dpatch
+include /usr/share/dpatch/dpatch.make
+
+configure: configure-stamp
+configure-stamp:
+
+ mkdir -p $(CURDIR)/build/kicad
+ mkdir -p $(CURDIR)/build/bitmaps
+ cd $(CURDIR)/build/kicad && cmake -DKICAD_MINIZIP=0 \
+ -DKICAD_DEMOS=$(CURDIR)/debian/kicad-common/usr/share/doc/kicad/demos ../../kicad \
+ -DXPM_CPP_PATH=$(CURDIR)/build/bitmaps
+ mkdir -p $(CURDIR)/build/kicad-doc
+ cd $(CURDIR)/build/kicad-doc && cmake ../../kicad-doc
+ mkdir -p $(CURDIR)/build/kicad-library
+ cd $(CURDIR)/build/kicad-library && cmake ../../kicad-library
+ touch $@
+
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: patch-stamp configure-stamp
+
+ $(MAKE) -C $(CURDIR)/build/kicad
+ touch $@
+
+build-indep: build-indep-stamp
+build-indep-stamp: patch-stamp configure-stamp
+
+ $(MAKE) -C $(CURDIR)/build/kicad-doc
+ $(MAKE) -C $(CURDIR)/build/kicad-library
+ touch $@
+
+clean: clean-patched clean-build unpatch
+clean-patched:
+ dh_testdir
+ dh_testroot
+ rm -f build-arch-stamp build-indep-stamp configure-stamp
+ dh_clean
+
+clean-build:
+ rm -rf $(CURDIR)/build
+
+partclean: clean-patched unpatch
+
+install: install-indep install-arch
+install-indep:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -i
+ dh_installdirs -i
+ dh_installdocs
+
+ cd $(CURDIR)/build/kicad/demos && cmake -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad/internat && cmake -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-common/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad/template && cmake -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-common/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-library && cmake -DCOMPONENT=resources -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-common/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=file_formats -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-common/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=footprints_doc -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-common/usr -P cmake_install.cmake
+
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-de -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-de/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-de -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-de/usr -P cmake_install.cmake
+
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-en -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-en/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-en -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-en/usr -P cmake_install.cmake
+
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-es -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-es/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-es -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-es/usr -P cmake_install.cmake
+
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-fr -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-fr/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-fr -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-fr/usr -P cmake_install.cmake
+
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-hu -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-hu/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-hu -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-hu/usr -P cmake_install.cmake
+
+# cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-it -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-it/usr -P cmake_install.cmake
+# cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-it -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-it/usr -P cmake_install.cmake
+
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-pt -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-pt/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-pt -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-pt/usr -P cmake_install.cmake
+
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-ru -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-ru/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-ru -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-ru/usr -P cmake_install.cmake
+
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-zh_CN -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-zh-cn/usr -P cmake_install.cmake
+ cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-zh_CN -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-zh-cn/usr -P cmake_install.cmake
+
+install-arch:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -s
+ dh_installdirs -s
+ dh_installmenu -s
+
+ $(MAKE) -C $(CURDIR)/build/kicad preinstall
+ cd $(CURDIR)/build/kicad && cmake -DCOMPONENT=binary -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad/usr -P cmake_install.cmake
+
+ dh_installdocs
+ dh_install -s
+
+# Build architecture independant packages.
+binary-indep: build-indep install-indep
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -i
+ dh_link -i
+ dh_strip -i
+# i don't want the helpfiles to be compressed
+ dh_compress -i --exclude=kicad/help --exclude=kicad/demos --exclude=.pdf
+ dh_fixperms -i
+ dh_makeshlibs -i
+ dh_installdeb -i
+ dh_shlibdeps -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+# Build architecture dependant packages.
+binary-arch: build-arch install-arch
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -s kicad/CHANGELOG.txt
+ dh_installman -s $(CURDIR)/debian/man/*.1
+ dh_link -s
+ dh_strip -s
+ dh_compress -s
+ dh_fixperms -s
+ dh_makeshlibs -s
+ dh_installdeb -s
+ dh_shlibdeps -s
+ dh_gencontrol -s
+ dh_md5sums -s
+ dh_builddeb -s
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch partclean
--- kicad-0.0.20100314.orig/debian/watch
+++ kicad-0.0.20100314/debian/watch
@@ -0,0 +1,4 @@
+# No real watch provided.
+# Upstream is not always available in unix format and includes components that
+# we normally remove for licence reasons.
+# Upstream is packaged from svn with some tweaks, see README.source.
--- kicad-0.0.20100314.orig/debian/kicad.install
+++ kicad-0.0.20100314/debian/kicad.install
@@ -0,0 +1,2 @@
+debian/kicad.desktop /usr/share/applications/
+kicad/bitmaps/icon_kicad.xpm /usr/share/pixmaps/
--- kicad-0.0.20100314.orig/debian/compat
+++ kicad-0.0.20100314/debian/compat
@@ -0,0 +1 @@
+6
--- kicad-0.0.20100314.orig/debian/source/format
+++ kicad-0.0.20100314/debian/source/format
@@ -0,0 +1 @@
+1.0
--- kicad-0.0.20100314.orig/debian/man/pcbnew.1
+++ kicad-0.0.20100314/debian/man/pcbnew.1
@@ -0,0 +1,17 @@
+.TH pcbnew 1 "June 15, 2007" "pcbnew"
+
+.SH NAME
+pcbnew \- a powerful printed circuit board editor.
+
+.B pcbnew
+manages libraries of modules. Each module is a drawing of the physical
+component, including its footprint, and the layout of pads providing connections
+to the component. The required modules are automatically loaded during the
+reading of the netlist produced by pcbnew.
+
+.SH SYNOPSIS
+.B pcbnew
+.RI [ boardfile ]
+
+.SH AUTHOR
+Richard Antony Burton <richardaburton@gmail.com>
--- kicad-0.0.20100314.orig/debian/man/eeschema.1
+++ kicad-0.0.20100314/debian/man/eeschema.1
@@ -0,0 +1,22 @@
+.TH eeschema 1 "June 15, 2007" "eeschema"
+
+.SH NAME
+eeschema \- a powerful schematic capture application.
+
+.SH DESCRIPTION
+.PP
+.B eeschema
+integrates the functions of drawing, control, layout, library management and
+access to the PCB design software. It also allows hierarchical drawings, using
+multi-sheets diagrams. It is intended to work with printed circuit software such
+as pcbnew, to which it will provide the netlist file. Eeschema also integrates a
+component editor which allows the creation, editing and visualization of
+components, as well as the handling of the symbol libraries (import, export,
+addition and deletion of library components).
+
+.SH SYNOPSIS
+.B eeschema
+.RI [ schematic ]
+
+.SH AUTHOR
+Richard Antony Burton <richardaburton@gmail.com>
--- kicad-0.0.20100314.orig/debian/man/gerbview.1
+++ kicad-0.0.20100314/debian/man/gerbview.1
@@ -0,0 +1,11 @@
+.TH gerbview 1 "June 15, 2007" "gerbview"
+
+.SH NAME
+gerbview \- viewer for GERBER format files.
+
+.SH SYNOPSIS
+.B gerbview
+.RI [ gerberfile ]
+
+.SH AUTHOR
+Richard Antony Burton <richardaburton@gmail.com>
--- kicad-0.0.20100314.orig/debian/man/kicad.1
+++ kicad-0.0.20100314/debian/man/kicad.1
@@ -0,0 +1,17 @@
+.TH kicad 1 "June 15, 2007" "kicad"
+
+.SH NAME
+kicad \- manager application for Kicad projects.
+
+.SH DESCRIPTION
+.PP
+The kicad utility program is a project manager that facilitates the use of the
+various programs required to draw schematics, lay out PCBs, generate and check
+the production files.
+
+.SH SYNOPSIS
+.B kicad
+.RI [ project ]
+
+.SH AUTHOR
+Richard Antony Burton <richardaburton@gmail.com>
--- kicad-0.0.20100314.orig/debian/man/cvpcb.1
+++ kicad-0.0.20100314/debian/man/cvpcb.1
@@ -0,0 +1,18 @@
+.TH cvpcb 1 "June 15, 2007" "cvpcb"
+
+.SH NAME
+cvpcb \- assign components to a netlist.
+
+.SH DESCRIPTION
+.PP
+.B cvpcb
+allows you to assign each component that appears in the netlist to a component
+footprint which will represent it on a PCB and adds this information to the
+netlist.
+
+.SH SYNOPSIS
+.B cvpcb
+.RI [ netlist ]
+
+.SH AUTHOR
+Richard Antony Burton <richardaburton@gmail.com>
--- kicad-0.0.20100314.orig/debian/patches/00list
+++ kicad-0.0.20100314/debian/patches/00list
@@ -0,0 +1 @@
+#01_wx26compat