From 57136646fb412cb845369701c4496057f78d4fb1 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Wed, 19 Dec 2012 09:14:57 +0100 Subject: Initial Debian packaging, including automated snapshot building in Travis. --- .travis.yml | 7 +++-- debian/changelog | 5 ++++ debian/colobot-common.install | 1 + debian/colobot-dev-doc.install | 1 + debian/colobot-dev-doc.links | 1 + debian/colobot.install | 2 ++ debian/compat | 1 + debian/control | 63 ++++++++++++++++++++++++++++++++++++++++++ debian/rules | 8 ++++++ debian/source/format | 1 + 10 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/colobot-common.install create mode 100644 debian/colobot-dev-doc.install create mode 100644 debian/colobot-dev-doc.links create mode 100644 debian/colobot.install create mode 100644 debian/compat create mode 100644 debian/control create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.travis.yml b/.travis.yml index 41f15bb..e43a1ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,11 @@ language: cpp compiler: - gcc -script: cmake . -DCMAKE_VERBOSE_MAKEFILE=ON && make all doc test +script: debuild -b -us -uc --lintian-opts '-ivI' before_install: - git submodule update --init --recursive - sudo apt-get update -qq - - sudo apt-get install -qq libgl1-mesa-dev libsdl1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libpng12-dev libltdl-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-regex-dev google-mock libgtest-dev doxygen graphviz + - sudo apt-get install -qq devscripts dpkg-dev lintian equivs + - mk-build-deps --root-cmd sudo --install --remove + - dch -v 0~git$(date +%Y%m%d%H%M)00-1~travis0 -m "Automated test-build." + - mkdir -p ../data diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5c2e5e6 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +colobot (0~git2012121900-1~OdyX0) UNRELEASED; urgency=low + + * Initial release. (Closes: #695829) + + -- Didier Raboud Wed, 19 Dec 2012 09:10:47 +0100 diff --git a/debian/colobot-common.install b/debian/colobot-common.install new file mode 100644 index 0000000..fff9f59 --- /dev/null +++ b/debian/colobot-common.install @@ -0,0 +1 @@ +usr/share/locale/*/LC_MESSAGES/colobot.mo diff --git a/debian/colobot-dev-doc.install b/debian/colobot-dev-doc.install new file mode 100644 index 0000000..4ae8eb0 --- /dev/null +++ b/debian/colobot-dev-doc.install @@ -0,0 +1 @@ +usr/share/doc/colobot/html diff --git a/debian/colobot-dev-doc.links b/debian/colobot-dev-doc.links new file mode 100644 index 0000000..76bf4e0 --- /dev/null +++ b/debian/colobot-dev-doc.links @@ -0,0 +1 @@ +usr/share/javascript/jquery/jquery.js usr/share/doc/colobot/html/jquery.js diff --git a/debian/colobot.install b/debian/colobot.install new file mode 100644 index 0000000..32a2ece --- /dev/null +++ b/debian/colobot.install @@ -0,0 +1,2 @@ +usr/lib/colobot/libCBot.so +usr/games/colobot 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..1269767 --- /dev/null +++ b/debian/control @@ -0,0 +1,63 @@ +Source: colobot +Section: games +Priority: optional +Maintainer: Debian Games Team +Uploaders: Didier Raboud +Build-Depends: + debhelper (>= 9), + cmake, + libgl1-mesa-dev | libgl-dev, + libsdl1.2-dev (>= 1.2.10), + libsdl-image1.2-dev, + libsdl-ttf2.0-dev, + libpng12-dev (>= 1.2), + libltdl-dev (>= 2.4.2), + libboost-dev, + libboost-system-dev, + libboost-filesystem-dev, + libboost-regex-dev, + google-mock, + libgtest-dev +Build-Depends-Indep: doxygen, graphviz +Standards-Version: 3.9.4 +Homepage: http://colobot.info + +Package: colobot +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + colobot-common (>= ${source:Version}) +Description: educational programming strategy game + Colobot (Colonize with Bots) is an educational game aiming to teach + programming through entertainment. You are playing as an astronaut on a + journey with robot helpers to find a planet for colonization. It features 3D + real-time graphics and a C++ and Java-like, object-oriented language, CBOT, + which can be used to program the robots available in the game. + +Package: colobot-common +Architecture: all +Depends: ${misc:Depends} +Recommends: colobot (>= ${source:Version}) +Description: educational programming strategy game - data + Colobot (Colonize with Bots) is an educational game aiming to teach + programming through entertainment. You are playing as an astronaut on a + journey with robot helpers to find a planet for colonization. It features 3D + real-time graphics and a C++ and Java-like, object-oriented language, CBOT, + which can be used to program the robots available in the game. + . + This package contains the architecture-independent game data. + +Package: colobot-dev-doc +Architecture: all +Section: doc +Depends: ${misc:Depends}, + libjs-jquery +Recommends: colobot (>= ${source:Version}) +Description: educational programming strategy game - source doc + Colobot (Colonize with Bots) is an educational game aiming to teach + programming through entertainment. You are playing as an astronaut on a + journey with robot helpers to find a planet for colonization. It features 3D + real-time graphics and a C++ and Java-like, object-oriented language, CBOT, + which can be used to program the robots available in the game. + . + This package contains the doxygen documentation for the colobot source code. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ff45b44 --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +%: + dh $@ --buildsystem=cmake --parallel + +override_dh_auto_build: + dh_auto_build -a + dh_auto_build -i -- doc 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) -- cgit v1.2.3-1-g7c22