summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/applications/knights/debian
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/_base/applications/knights/debian')
-rw-r--r--ubuntu/_base/applications/knights/debian/cdbs/debian-qt-kde.mk119
-rw-r--r--ubuntu/_base/applications/knights/debian/cdbs/kde.mk91
-rw-r--r--ubuntu/_base/applications/knights/debian/cdbs/versions.pl19
-rw-r--r--ubuntu/_base/applications/knights/debian/changelog162
-rw-r--r--ubuntu/_base/applications/knights/debian/compat1
-rw-r--r--ubuntu/_base/applications/knights/debian/control37
-rw-r--r--ubuntu/_base/applications/knights/debian/copyright15
-rw-r--r--ubuntu/_base/applications/knights/debian/docs2
-rw-r--r--ubuntu/_base/applications/knights/debian/knights-themepack-trinity.install1
-rw-r--r--ubuntu/_base/applications/knights/debian/knights-trinity.install2
-rw-r--r--ubuntu/_base/applications/knights/debian/knights.xpm183
-rw-r--r--ubuntu/_base/applications/knights/debian/menu6
-rw-r--r--ubuntu/_base/applications/knights/debian/patches/.gitignore0
-rwxr-xr-xubuntu/_base/applications/knights/debian/rules32
-rw-r--r--ubuntu/_base/applications/knights/debian/source/format1
-rw-r--r--ubuntu/_base/applications/knights/debian/source/options6
16 files changed, 677 insertions, 0 deletions
diff --git a/ubuntu/_base/applications/knights/debian/cdbs/debian-qt-kde.mk b/ubuntu/_base/applications/knights/debian/cdbs/debian-qt-kde.mk
new file mode 100644
index 000000000..60310a01a
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/cdbs/debian-qt-kde.mk
@@ -0,0 +1,119 @@
+ifndef _cdbs_bootstrap
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+endif
+
+ifndef _cdbs_class_debian-qt-kde
+_cdbs_class_debian-qt-kde := 1
+
+# Note: This _must_ be included before autotools.mk, or it won't work.
+common-configure-arch common-configure-indep:: debian/stamp-cvs-make
+debian/stamp-cvs-make:
+ifndef _cdbs_class_cmake
+ cp -Rp /usr/share/aclocal/libtool.m4 admin/libtool.m4.in
+ifneq "$(wildcard /usr/share/libtool/config/ltmain.sh)" ""
+ cp -Rp /usr/share/libtool/config/ltmain.sh admin/ltmain.sh
+endif
+ifneq "$(wildcard /usr/share/libtool/build-aux/ltmain.sh)" ""
+ cp -Rp /usr/share/libtool/build-aux/ltmain.sh admin/ltmain.sh
+endif
+ $(MAKE) -C $(DEB_SRCDIR) -f admin/Makefile.common dist;
+endif
+ touch debian/stamp-cvs-make
+
+include debian/cdbs/kde.mk$(_cdbs_makefile_suffix)
+
+ifndef _cdbs_rules_patchsys_quilt
+DEB_PATCHDIRS := debian/patches/common debian/patches
+endif
+
+DEB_KDE_ENABLE_FINAL := yes
+DEB_INSTALL_DOCS_ALL :=
+
+DEB_DH_MAKESHLIBS_ARGS_ALL := -V
+DEB_SHLIBDEPS_INCLUDE = $(foreach p,$(PACKAGES_WITH_LIBS),debian/$(p)/usr/lib)
+
+ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ cdbs_treat_me_gently_arches := arm m68k alpha ppc64 armel armeb
+ ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(cdbs_treat_me_gently_arches)))
+ cdbs_kde_enable_final = $(if $(DEB_KDE_ENABLE_FINAL),--enable-final,)
+ else
+ cdbs_kde_enable_final =
+ endif
+endif
+
+common-build-arch:: debian/stamp-man-pages
+debian/stamp-man-pages:
+ if ! test -d debian/man/out; then mkdir -p debian/man/out; fi
+ for f in $$(find debian/man -name '*.sgml'); do \
+ docbook-to-man $$f > debian/man/out/`basename $$f .sgml`.1; \
+ done
+ for f in $$(find debian/man -name '*.man'); do \
+ soelim -I debian/man $$f \
+ > debian/man/out/`basename $$f .man`.`head -n1 $$f | awk '{print $$NF}'`; \
+ done
+ touch debian/stamp-man-pages
+
+common-binary-indep::
+ ( set -e; \
+ tmpf=`mktemp debian/versions.XXXXXX`; \
+ perl debian/cdbs/versions.pl >$$tmpf; \
+ for p in $(DEB_INDEP_PACKAGES); do \
+ cat $$tmpf >>debian/$$p.substvars; \
+ done; \
+ rm -f $$tmpf )
+
+common-binary-arch::
+ ( set -e; \
+ tmpf=`mktemp debian/versions.XXXXXX`; \
+ perl debian/cdbs/versions.pl >$$tmpf; \
+ for p in $(DEB_ARCH_PACKAGES); do \
+ cat $$tmpf >>debian/$$p.substvars; \
+ done; \
+ rm -f $$tmpf )
+
+clean::
+ rm -rf debian/man/out
+ -rmdir debian/man
+ rm -f debian/stamp-man-pages
+ rm -rf debian/shlibs-check
+
+$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
+ if test -x /usr/bin/dh_desktop; then dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS); fi
+ if test -e debian/$(cdbs_curpkg).lintian; then \
+ install -p -D -m644 debian/$(cdbs_curpkg).lintian \
+ debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \
+ fi
+ if test -e debian/$(cdbs_curpkg).presubj; then \
+ install -p -D -m644 debian/$(cdbs_curpkg).presubj \
+ debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/presubj; \
+ fi
+
+binary-install/$(DEB_SOURCE_PACKAGE)-doc-html::
+ set -e; \
+ for doc in `cd $(DEB_DESTDIR)/opt/trinity/share/doc/tde/HTML/en; find . -name index.docbook`; do \
+ pkg=$${doc%/index.docbook}; pkg=$${pkg#./}; \
+ echo Building $$pkg HTML docs...; \
+ mkdir -p $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/opt/trinity/share/doc/tde/HTML/en/$$pkg; \
+ cd $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/opt/trinity/share/doc/tde/HTML/en/$$pkg; \
+ /opt/trinity/bin/meinproc $(DEB_DESTDIR)/opt/trinity/share/doc/tde/HTML/en/$$pkg/index.docbook; \
+ done
+ for pkg in $(DOC_HTML_PRUNE) ; do \
+ rm -rf debian/$(DEB_SOURCE_PACKAGE)-doc-html/opt/trinity/share/doc/tde/HTML/en/$$pkg; \
+ done
+
+clean::
+ifndef _cdbs_class_cmake
+ if test -n "$(DEB_KDE_CVS_MAKE)" && test -d $(DEB_SRCDIR); then \
+ cd $(DEB_SRCDIR); \
+ find . -name Makefile.in -print | \
+ xargs --no-run-if-empty rm -f; \
+ rm -f Makefile.am acinclude.m4 aclocal.m4 config.h.in \
+ configure configure.files configure.in stamp-h.in \
+ subdirs; \
+ fi
+endif
+ rm -f debian/stamp-cvs-make
+
+endif
diff --git a/ubuntu/_base/applications/knights/debian/cdbs/kde.mk b/ubuntu/_base/applications/knights/debian/cdbs/kde.mk
new file mode 100644
index 000000000..80176d63e
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/cdbs/kde.mk
@@ -0,0 +1,91 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2003 Christopher L Cheney <ccheney@debian.org>
+# Description: A class for KDE packages; sets KDE environment variables, etc
+#
+# 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, 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_class_kde
+_cdbs_class_kde := 1
+
+# for dh_icons
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), debhelper (>= 5.0.7ubuntu4)
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+ifdef _cdbs_tarball_dir
+DEB_BUILDDIR = $(_cdbs_tarball_dir)/obj-$(DEB_BUILD_GNU_TYPE)
+else
+DEB_BUILDDIR = obj-$(DEB_BUILD_GNU_TYPE)
+endif
+
+ifndef _cdbs_class_cmake
+include $(_cdbs_class_path)/autotools.mk$(_cdbs_makefile_suffix)
+endif
+
+export kde_cgidir = \$${libdir}/cgi-bin
+export kde_confdir = \$${sysconfdir}/trinity
+export kde_htmldir = \$${datadir}/doc/tde/HTML
+
+ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+ cdbs_kde_enable_final = $(if $(DEB_KDE_ENABLE_FINAL),--enable-final,)
+endif
+
+ifneq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+ cdbs_kde_enable_final =
+ cdbs_kde_enable_debug = --enable-debug=yes
+else
+ cdbs_kde_enable_debug = --disable-debug
+endif
+
+ifneq (,$(filter debug,$(DEB_BUILD_OPTIONS)))
+ cdbs_kde_enable_debug = --enable-debug=full
+endif
+
+cdbs_configure_flags += --with-qt-dir=/usr/share/qt3 --disable-rpath --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug)
+
+DEB_AC_AUX_DIR = $(DEB_SRCDIR)/admin
+DEB_CONFIGURE_INCLUDEDIR = "\$${prefix}/include"
+DEB_COMPRESS_EXCLUDE = .dcl .docbook -license .tag .sty .el
+
+$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
+ if test -x /usr/bin/dh_icons; then dh_icons -p$(cdbs_curpkg) $(DEB_DH_ICONCACHE_ARGS); fi
+
+cleanbuilddir::
+ -$(if $(call cdbs_streq,$(DEB_BUILDDIR),$(DEB_SRCDIR)),,rm -rf $(DEB_BUILDDIR))
+
+common-build-arch common-build-indep:: debian/stamp-kde-apidox
+debian/stamp-kde-apidox:
+ $(if $(DEB_KDE_APIDOX),+$(DEB_MAKE_INVOKE) apidox)
+ touch $@
+
+common-install-arch common-install-indep:: common-install-kde-apidox
+common-install-kde-apidox::
+ $(if $(DEB_KDE_APIDOX),+$(DEB_MAKE_INVOKE) install-apidox DESTDIR=$(DEB_DESTDIR))
+
+clean::
+ rm -f debian/stamp-kde-apidox
+
+# This is a convenience target for calling manually. It's not part of
+# the build process.
+buildprep: clean apply-patches
+ $(MAKE) -f admin/Makefile.common dist
+ debian/rules clean
+
+endif
diff --git a/ubuntu/_base/applications/knights/debian/cdbs/versions.pl b/ubuntu/_base/applications/knights/debian/cdbs/versions.pl
new file mode 100644
index 000000000..1b110f7af
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/cdbs/versions.pl
@@ -0,0 +1,19 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+my $version = `dpkg-parsechangelog | awk '/^Version/ {print \$2}'`;
+my ($version3, $version3_next);
+my ($version2, $version2_next);
+
+($version3 = $version) =~ s/^(([^.]+\.){2}[^.+~-]+)[.+~-]?[^-]*-[^-]+$/$1/;
+($version2 = $version3) =~ s/\.[^.]+$//;
+
+($version3_next = $version3) =~ s/(?<=\.)(\d+)[a-z]?$/($1+1)/e;
+($version2_next = $version2) =~ s/(?<=\.)(\d+)$/($1+1)/e;
+
+print "TDE-Version3=$version3\n";
+print "TDE-Version2=$version2\n";
+print "TDE-Next-Version3=$version3_next\n";
+print "TDE-Next-Version2=$version2_next\n";
diff --git a/ubuntu/_base/applications/knights/debian/changelog b/ubuntu/_base/applications/knights/debian/changelog
new file mode 100644
index 000000000..9fdc0f108
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/changelog
@@ -0,0 +1,162 @@
+knights-trinity (0.6-8.3ubuntu0) karmic; urgency=low
+
+ * Karmic rebuild
+
+ -- Timothy Pearson <kb9vqf@pearsoncomputing.net> Thu, 02 Jul 2009 16:08:00 -0600
+
+knights-trinity (0.6-8.2ubuntu3) intrepid; urgency=low
+
+ * Moved Trinity to /opt/trinity
+ * Integrated properly with KDE4.2+
+
+ -- Timothy Pearson <kb9vqf@pearsoncomputing.net> Fri, 06 March 2009 01:35:00 -0600
+
+knights (0.6-8.2ubuntu1) intrepid; urgency=low
+
+ * Merge from debian unstable, remaining changes:
+ - debian/kubuntu_01_fix_castle.diff
+ - Changed homepage and redid for new Debian spec.
+ - Added Original-Maintainer as per Ubuntu spec.
+ - debian/rules: Removed config.{sub,guess}.
+ - debian/rules: added dh_icons.
+
+ -- Andreas Wenning <awen@awen.dk> Tue, 03 Jun 2008 21:43:51 +0200
+
+knights (0.6-8.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Drop obsolete QT compat headers, patch by Barry deFreese
+ (Closes: #464630)
+
+ -- Moritz Muehlenhoff <jmm@debian.org> Wed, 02 Apr 2008 22:45:54 +0200
+
+knights (0.6-8.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * debian/rules: Fix bashism. (Closes: #459084)
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Mon, 28 Jan 2008 00:00:08 +0100
+
+knights (0.6-8ubuntu3) hardy; urgency=low
+
+ * debian/rules: changed dh_iconcache to dh_icons - fixes build.
+
+ -- Jonathan Patrick Davies <jpatrick@kubuntu.org> Thu, 6 Dec 2007 23:36:10 +0100
+
+knights (0.6-8ubuntu2) hardy; urgency=low
+
+ * Correct maintainer email.
+
+ -- Jonathan Patrick Davies <jpatrick@kubuntu.org> Fri, 26 Oct 2007 20:36:30 +0200
+
+knights (0.6-8ubuntu1) hardy; urgency=low
+
+ * Merge from debian unstable. Remaining Ubuntu changes:
+ - debian/kubuntu_01_fix_castle.diff
+ - Changed homepage and redid for new Debian spec.
+ - Added Original-Maintainer as per Ubuntu spec.
+ * debian/rules: Removed config.{sub,guess}.
+
+ -- Jonathan Patrick Davies <jpatrick@kubuntu.org> Fri, 26 Oct 2007 18:47:30 +0200
+
+knights (0.6-8) unstable; urgency=low
+
+ * New Mantainer. (Closes: #439531)
+ * debian/watch: Updated to version 3.
+ * debian/control:
+ - Build-Depends: debhelper (>= 5.0.0).
+ - Suggests: knights-themepack
+ * debian/compat: DH_COMPAT 5.
+ * debian/rules: copy updated config.guess and config.sub files to admin
+ directory.
+
+ -- Jose Carlos Medeiros <debian@psabs.com.br> Thu, 06 Sep 2007 18:31:36 -0300
+
+knights (0.6-7.1ubuntu2) feisty; urgency=low
+
+ * Automated backport by prevu. No source changes
+ * Fixed if in rules to work properly
+
+ -- Martin Meredith <mez@ubuntu.com> Wed, 8 Nov 2006 18:12:43 +0000
+
+knights (0.6-7.1ubuntu2) edgy; urgency=low
+
+ * Added kubuntu_01_fix_castle.dpatch to fix castling (Closes Malone #70424)
+
+ -- Martin Meredith <mez@ubuntu.com> Wed, 8 Nov 2006 17:31:03 +0000
+
+knights (0.6-7.1ubuntu1) edgy; urgency=low
+
+ * Sync from debian unstable
+ * Added dh_iconcache
+
+ -- Sarah Hobbs <hobbsee@ubuntu.com> Wed, 30 Aug 2006 03:20:17 -0500
+
+knights (0.6-7.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Don't send the "st" (search time limit) command when using xboard to talk
+ to chess engines; it makes some chess engines confused wrt. how much time
+ they should spend on each move. Patch from Alex Midgley. (Closes: #366181)
+
+ -- Steinar H. Gunderson <sesse@debian.org> Tue, 29 Aug 2006 00:41:44 +0200
+
+knights (0.6-7) unstable; urgency=low
+
+ * debian/control: added tdebase-kio-plugins to Depends field.
+ This allow users without kde installations to be able to load knights
+ themes. (Closes: #361451)
+ * Added a dpatch (courtesy of Claudio Moratti) to prevent knights from asking
+ to agree to GPL in order to install it. (Closes: #360847)
+ * debian/control: Standards-Version bumped to 3.7.2 (no changes required).
+
+ -- Tommaso Moroni <moronito@debian.org> Sun, 28 May 2006 16:29:36 +0200
+
+knights (0.6-6) unstable; urgency=low
+
+ * Rebuild against tdelibs4c2a. (Closes: #338269)
+ * debian/control: build-depends on specific libraries instead of xlibs-dev.
+
+ -- Tommaso Moroni <moronito@debian.org> Sun, 4 Dec 2005 11:55:42 +0100
+
+knights (0.6-5) unstable; urgency=low
+
+ * Installed a menu icon, thanks to Steffen Joeris
+ for the patch. (Closes: #333383)
+ * debian/rules: removes po/de.gmo during cleaning and restores original
+ doc/Makefile.in to allow multiple builds from the same source.
+ Thanks to Steffen Joeris for the help. (Closes: #333386)
+
+ -- Tommaso Moroni <moronito@debian.org> Sun, 23 Oct 2005 17:51:37 +0200
+
+knights (0.6-4) unstable; urgency=low
+
+ * Rebuild for C++-4.0 ABI transition and for libjack0.80.0 removal. (Closes: #317207)
+ * debian/patches: added corrections to the German PO file,
+ thanks to Jens Seidel. (Closes: #314004)
+ * debian/control: Standards-Version bumped to 3.6.2 (no changes required).
+
+ -- Tommaso Moroni <moronito@debian.org> Sun, 11 Sep 2005 16:53:42 +0200
+
+knights (0.6-3) unstable; urgency=low
+
+ * debian/patches: added a patch to allow compilation with g++-4.0,
+ thanks to Andreas Jochens. (Closes: #300362)
+
+ -- Tommaso Moroni <moronito@debian.org> Sun, 20 Mar 2005 17:44:17 +0100
+
+knights (0.6-2) unstable; urgency=low
+
+ * debian/control: added xlibs-dev to the build-depends. (Closes: #300139)
+ * debian/rules: added --enable-libsuffix= to configure command, so on some archs
+ /lib64 isn't assumed as the only library directory suffix.
+ * debian/copyright: made distinction between license and copyright.
+
+ -- Tommaso Moroni <moronito@debian.org> Fri, 18 Mar 2005 18:40:20 +0100
+
+knights (0.6-1) unstable; urgency=low
+
+ * Initial Release. (closes: #136271)
+
+ -- Tommaso Moroni <moronito@debian.org> Thu, 23 Dec 2004 11:20:19 +0100
+
diff --git a/ubuntu/_base/applications/knights/debian/compat b/ubuntu/_base/applications/knights/debian/compat
new file mode 100644
index 000000000..7f8f011eb
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/ubuntu/_base/applications/knights/debian/control b/ubuntu/_base/applications/knights/debian/control
new file mode 100644
index 000000000..927dfcbad
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/control
@@ -0,0 +1,37 @@
+Source: knights-trinity
+Section: games
+Priority: optional
+Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
+XSBC-Original-Maintainer: Jose Carlos Medeiros <debian@psabs.com.br>
+Uploaders: Ola Lundqvist <opal@debian.org>
+Build-Depends: debhelper (>= 7.0.50~), cdbs, quilt, cmake, tdelibs14-trinity-dev
+Standards-Version: 3.8.4
+Homepage: http://knights.sourceforge.net/
+
+Package: knights-trinity
+Architecture: any
+Depends: ${shlibs:Depends}, tdebase-tdeio-plugins-trinity
+Replaces: knights-kde3 (<< 4:14.0.0~), knights-trinity (<< 4:14.0.0~)
+Breaks: knights-kde3 (<< 4:14.0.0~), knights-trinity (<< 4:14.0.0~)
+Suggests: gnuchess | crafty | sjeng, knights-themepack-trinity
+Description: A chess interface for the Trinity Desktop Environment [Trinity]
+ Knights aims to be the ultimate chess resource on your computer.
+ Written for the Trinity Desktop Environment, it's designed to be both friendly
+ to new chess players and functional for Grand Masters.
+ .
+ Here's a quick list of Knights' key features:
+ .
+ * Play against yourself, against computer opponents,
+ or against others over the Internet.
+ * Customize your board and pieces with over 30 different themes,
+ or make your own!
+ * Audio cues help alert you to important events.
+ * Novice players can preview potential moves.
+ * Save your unfinished matches and play them again later.
+
+Package: knights-themepack-trinity
+Architecture: all
+Depends: ${shlibs:Depends}
+Enhances: knights-trinity
+Description: A chess interface for the Trinity Desktop Environment [Trinity]
+ This packages contains extra themes.
diff --git a/ubuntu/_base/applications/knights/debian/copyright b/ubuntu/_base/applications/knights/debian/copyright
new file mode 100644
index 000000000..c8554f7b5
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/copyright
@@ -0,0 +1,15 @@
+This package was debianized by Tommaso Moroni <moronito@debian.org> on
+Thu, 23 Dec 2004 11:20:19 +0100.
+
+It was downloaded from http://sourceforge.net/projects/knights
+
+Copyright:
+
+Copyright 2003, Troy Corbin Jr.
+
+Upstream Author: Troy Corbin Jr <tcorbin@users.sourceforge.net>
+
+License:
+
+This software is distributed under the GNU General Public License,
+which can be found at /usr/share/common-licenses/GPL-2.
diff --git a/ubuntu/_base/applications/knights/debian/docs b/ubuntu/_base/applications/knights/debian/docs
new file mode 100644
index 000000000..724e08449
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/docs
@@ -0,0 +1,2 @@
+README
+TODO
diff --git a/ubuntu/_base/applications/knights/debian/knights-themepack-trinity.install b/ubuntu/_base/applications/knights/debian/knights-themepack-trinity.install
new file mode 100644
index 000000000..790c5478d
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/knights-themepack-trinity.install
@@ -0,0 +1 @@
+opt/trinity/share/apps/knights/themes
diff --git a/ubuntu/_base/applications/knights/debian/knights-trinity.install b/ubuntu/_base/applications/knights/debian/knights-trinity.install
new file mode 100644
index 000000000..d0c4719c4
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/knights-trinity.install
@@ -0,0 +1,2 @@
+opt/trinity
+debian/knights.xpm /opt/trinity/share/pixmaps
diff --git a/ubuntu/_base/applications/knights/debian/knights.xpm b/ubuntu/_base/applications/knights/debian/knights.xpm
new file mode 100644
index 000000000..afbf1959a
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/knights.xpm
@@ -0,0 +1,183 @@
+/* XPM */
+static char *knights[] = {
+/* columns rows colors chars-per-pixel */
+"32 32 145 2",
+" c #9C5D2E",
+". c #9F602F",
+"X c #9D6135",
+"o c #A4622E",
+"O c #AA642C",
+"+ c #AC692D",
+"@ c #A36434",
+"# c #A56936",
+"$ c #A56B3D",
+"% c #AA6634",
+"& c #AC6934",
+"* c #AB6D3B",
+"= c #B2672A",
+"- c #B4692D",
+"; c #BA6B2E",
+": c #B16631",
+"> c #B36B32",
+", c #B96D30",
+"< c #BC702D",
+"1 c #B67032",
+"2 c #B3723B",
+"3 c #BB7231",
+"4 c #BA753E",
+"5 c #BC783A",
+"6 c #8F755E",
+"7 c #9D6B42",
+"8 c #906E54",
+"9 c #9E7858",
+"0 c #997F6C",
+"q c #A16C43",
+"w c #AA6E44",
+"e c #A4714B",
+"r c #AD7145",
+"t c #A97449",
+"y c #A57C5C",
+"u c #AA7752",
+"i c #A87C5D",
+"p c #B37343",
+"a c #B57A47",
+"s c #B37A4A",
+"d c #B87542",
+"f c #BA7942",
+"g c #B97C4C",
+"h c #B67F51",
+"j c #A77F62",
+"k c #C06F2C",
+"l c #C3732E",
+"z c #C6782F",
+"x c #CC772B",
+"c c #CA792E",
+"v c #C17530",
+"b c #C0753C",
+"n c #C37830",
+"m c #C37A3D",
+"M c #CB7C30",
+"N c #CB7F3D",
+"B c #D07D2D",
+"V c #C37D40",
+"C c #8C827A",
+"Z c #9F856C",
+"A c #9A8271",
+"S c #9A8779",
+"D c #9F8A76",
+"F c #A9805A",
+"G c #BF814B",
+"H c #B6845B",
+"J c #BB875F",
+"K c #BB885D",
+"L c #A08164",
+"P c #A2856D",
+"I c #A4907E",
+"U c #BE8D64",
+"Y c #BD906B",
+"T c #CB823E",
+"R c #D3863D",
+"E c #C08555",
+"W c #C28B5D",
+"Q c #C08E63",
+"! c #C79263",
+"~ c #CA9664",
+"^ c #CEA176",
+"/ c #8E8782",
+"( c #8C8986",
+") c #9E9D9B",
+"_ c #AE9B8A",
+"` c #A69F99",
+"' c #BA9D87",
+"] c #A4A19E",
+"[ c #ADA095",
+"{ c #ABA198",
+"} c #B5A89C",
+"| c #A0A0A0",
+" . c #ACA7A2",
+".. c #ADA9A6",
+"X. c gray66",
+"o. c #B5B0AC",
+"O. c #BDB3AB",
+"+. c #B2B2B2",
+"@. c #BDB7B3",
+"#. c #BBB8B6",
+"$. c #BABAB9",
+"%. c #C3A084",
+"&. c #CAA383",
+"*. c #CAAF9A",
+"=. c #CAB09B",
+"-. c #D4B59B",
+";. c #C6B1A1",
+":. c #CCBAAE",
+">. c #C3BAB3",
+",. c #C0BEBD",
+"<. c #CFBEB1",
+"1. c #D0B5A0",
+"2. c #D5B8A3",
+"3. c #D5BCA9",
+"4. c #D8BAA1",
+"5. c #DDBFA8",
+"6. c #DCC2AC",
+"7. c #D2C0B2",
+"8. c #D2C5BB",
+"9. c #D9C3B2",
+"0. c #E2C4AB",
+"q. c #E0C8B8",
+"w. c #C2C2C2",
+"e. c #CBC7C3",
+"r. c #CDCDCD",
+"t. c #D5CDC6",
+"y. c #D9CDC3",
+"u. c #D5D1CE",
+"i. c #D4D4D4",
+"p. c #D8D4D1",
+"a. c #DFDBD7",
+"s. c #DADADA",
+"d. c #E5D5C9",
+"f. c #E9DBCF",
+"g. c #E2DAD4",
+"h. c #E1DDD9",
+"j. c #E8DCD3",
+"k. c #E8E0DA",
+"l. c #E4E4E4",
+"z. c gray92",
+"x. c #F3EFEA",
+"c. c #F6F2EF",
+"v. c #F4F4F4",
+"b. c #F8F7F6",
+"n. c #FDFDFD",
+/* pixels */
+"w 2 p p r r e r p p p p w w a d a p p p p p w r r p p p p w p g ",
+". & : : > > : : > > % # & > : & & & : : > > : : : > : & # & & p ",
+"O : ; ; & & & : > > > 1 ; ; , d , : > ; - & % % : : > > ; ; , V ",
+"= ; ; : % @ $ : 1 1 1 & @ % W 4.b k ; ; % % @ # > 3 1 2 % @ l R ",
+"+ > ; , % % % > , > > g 3.k.n.n.v.8.d , > % # & 1 > > > : 1 > f ",
+"X > > & X X @ # > - 4 1.n.n.n.n.n.n.&., @ X X @ & > > > > > 1 f ",
+"O - > > 1 > > , K *.d.n.n.n.n.n.n.n.x.%.; > > 1 1 1 > , 3 v 5 V ",
+"O 1 3 z 3 1 5 J f.b.n.n.n.n.n.n.n.n.n.g.1 3 5 3 v 3 3 3 c c M T ",
+"< c c c c c g y.n.n.n.n.n.n.b.n.n.n.n.n.^ c z 5 v l v v z c z T ",
+"+ z c c z v f 7.n.n.z.z.c.h.=.h.n.n.n.n.-.m , > 1 3 3 1 1 3 1 f ",
+"# 1 1 1 1 1 > > Y H % # # : a y.n.n.n.n.6.5 > > > > & # # # > f ",
+"+ < < < 1 ; , , ; & # @ & > h g.n.n.n.n.j.E , , > > & # % & 1 f ",
+"o 1 , & & & > > > % @ @ % , 4.b.n.n.n.n.v.;.: > , : $ @ @ : l b ",
+"= x l % @ & , 3 > > % % : J v.n.n.n.n.n.b.<.> 1 , > & & % : : V ",
+". + > ; ; ; & > & : > > J j.n.n.n.n.n.n.v.3.> : > > : : : : : d ",
+"o & & & & % % % # & % # *.b.n.n.n.n.n.n.v.t.# # % % % % & & : d ",
+"@ : % @ @ @ % & % % @ % 9.n.n.n.n.n.n.n.c.l.e @ & & % % % @ % p ",
+"X : : % @ % @ # % # % # q.n.n.n.n.n.n.n.c.l.j @ % % # # % % % d ",
+". % ; : > > > - ; : - > p.n.n.n.n.n.b.v.z.i.t ; : : : > : : 2 p ",
+"= : ; , : : > > ; ; > & ' :.0.0.0.5.2.1.1.' : % ; , , > : : , m ",
+"O , , ; % @ @ & 1 > 1 > 7 P } #.w.w.w.@._ Z @ @ > > > 1 * # l T ",
+"= , ; ; % # % & , , > > 1 q ] ,.i.i.r.$.S 7 $ % 1 1 1 > , > , f ",
+"@ * : % @ X # & & & > , 2 I s.v.n.n.n.b.w.A @ # & > > > 1 < , f ",
+"o % > > 1 & 1 1 1 > > 1 F +.z.b.n.n.n.b.i...* > 1 1 & 1 3 < < E ",
+"- z x x < < < T 3 z v 5 { r.v.n.n.n.n.n.l.r.D 5 3 z 3 z c R R R ",
+"- x R R T x < < l v 4 Z $.i.z.v.n.n.b.b.l.i...L 3 3 M 3 3 c x c ",
+"+ 1 3 3 < 1 = - 1 2 9 | i.l.b.b.b.b.b.b.v.l.w.) * 1 1 & > 1 & f ",
+"o 1 < 1 1 1 1 + > % 8 ( X.+.#.$.$.$.$.$.+.+.| / $ & # X X # & f ",
+"+ ; > , 1 - 1 - , & C { >.e.p.g.s.s.k.a.u.e.O.[ 6 % & % % - 1 m ",
+"+ l l > & 1 > 1 > : 7 e u i J U ! ! ~ U i y s a 2 > # @ % % > m ",
+"= ; ; + + & > 1 % - = % % - - ; ; ; l > % % > > > > : % % : > d ",
+" o @ O o o o o o o o % O O o . o @ o o o o o o o o O O O O * "
+};
diff --git a/ubuntu/_base/applications/knights/debian/menu b/ubuntu/_base/applications/knights/debian/menu
new file mode 100644
index 000000000..8ebc94bc8
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/menu
@@ -0,0 +1,6 @@
+?package(knights-trinity):\
+needs="X11"\
+section="Games/Board"\
+title="Knights"\
+command="/opt/trinity/bin/knights"\
+icon="/opt/trinity/share/pixmaps/knights.xpm"
diff --git a/ubuntu/_base/applications/knights/debian/patches/.gitignore b/ubuntu/_base/applications/knights/debian/patches/.gitignore
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/patches/.gitignore
diff --git a/ubuntu/_base/applications/knights/debian/rules b/ubuntu/_base/applications/knights/debian/rules
new file mode 100755
index 000000000..3992c290c
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/rules
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/cmake.mk
+#include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include debian/cdbs/debian-qt-kde.mk
+
+DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
+ && echo xz || echo bzip2)
+
+DEB_CMAKE_EXTRA_FLAGS := \
+ -DCMAKE_INSTALL_PREFIX="/opt/trinity" \
+ -DCONFIG_INSTALL_DIR="/etc/trinity" \
+ -DSYSCONF_INSTALL_DIR="/etc/trinity" \
+ -DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_VERBOSE_MAKEFILE="ON" \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DBUILD_ALL="ON" \
+ -DWITH_ALL_OPTIONS="ON"
+
+binary-install/knights-trinity::
+ @dh_testdir
+ # remove extra themes
+ (cd debian/$(cdbs_curpkg)/opt/trinity/share/apps/knights/themes/ && \
+ ls -1 | grep -v "K.Default\.tar\.gz" | xargs -r rm)
+
+binary-install/knights-themepack-trinity::
+ @dh_testdir
+ # remove default theme
+ (cd debian/$(cdbs_curpkg)/opt/trinity/share/apps/knights/themes/ && \
+ ls -1 | grep "K.Default\.tar\.gz" | xargs -r rm)
diff --git a/ubuntu/_base/applications/knights/debian/source/format b/ubuntu/_base/applications/knights/debian/source/format
new file mode 100644
index 000000000..163aaf8d8
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/ubuntu/_base/applications/knights/debian/source/options b/ubuntu/_base/applications/knights/debian/source/options
new file mode 100644
index 000000000..72f1f5450
--- /dev/null
+++ b/ubuntu/_base/applications/knights/debian/source/options
@@ -0,0 +1,6 @@
+# Use xz instead of gzip
+compression = "xz"
+compression-level = 9
+
+# Don't run differences
+diff-ignore = .*