summaryrefslogtreecommitdiff
path: root/packaging/deb
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-26 20:34:10 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-26 20:34:10 +0000
commitd8371c847f6ba1c8f59ce7f390d870de268ab1b4 (patch)
treed9e185db0a05bcd768269d71f5b431eccca58c51 /packaging/deb
parentd2292c599cb7e7a3a1ecae9c69068c90478c804a (diff)
- script na buildenie *.deb balickov ( spustat z adresara v ktorom sa nachazda )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@252 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'packaging/deb')
-rwxr-xr-xpackaging/deb/build.sh32
-rw-r--r--packaging/deb/control12
-rw-r--r--packaging/deb/tuxanci.desktop9
3 files changed, 53 insertions, 0 deletions
diff --git a/packaging/deb/build.sh b/packaging/deb/build.sh
new file mode 100755
index 0000000..6d5a56e
--- /dev/null
+++ b/packaging/deb/build.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+rm -rf tmp
+
+mkdir tmp
+mkdir tmp/DEBIAN
+
+mkdir tmp/usr/
+mkdir tmp/usr/games
+mkdir tmp/usr/games/lib
+mkdir tmp/usr/games/share
+mkdir tmp/usr/share/
+mkdir tmp/usr/share/applications/
+
+echo "2.0" > tmp/DEBIAN/debian-binary
+cp control tmp/DEBIAN
+cp tuxanci.desktop tmp/usr/share/applications/
+
+cd ../..
+
+rm CMakeCache.txt
+make clean
+cmake . -DDebug=1 -DCMAKE_INSTALL_PREFIX=/usr/games -DCMAKE_DATA_PATH=/usr/games/share -DCMAKE_CONF_PATH=/etc -DLIB_INSTALL_DIR=/usr/games/lib
+make DESTDIR=./packaging/deb/tmp/ install
+
+cd ./packaging/deb
+
+cd tmp
+md5sum `find . -type f | awk '/.\// { print substr($0, 3) }'` > DEBIAN/md5sums
+cd ..
+
+dpkg-deb -b tmp tuxanci_svn-1_i386.deb
diff --git a/packaging/deb/control b/packaging/deb/control
new file mode 100644
index 0000000..5874d37
--- /dev/null
+++ b/packaging/deb/control
@@ -0,0 +1,12 @@
+Package: tuxanci
+Version: 0.20.0
+Section: Game
+Priority: optional
+Depends: libc6 (>= 2.2.4-4), libsdl1.2debian (>= 1.2), libsdl-image1.2 (>= 1.2), libsdl-mixer1.2 (>= 1.2), libsdl-ttf2.0-0 (>= 2.0)
+Architecture: i386
+Installed-Size: 4993
+Maintainer: Dušan Ďurech <dusan.d@centrum.sk>
+Description: Game tuxanci next generation version 0.20.0 SVN revision
+ Game tuxanci next generation SVN revision
+ .
+ http://www.tuxanci.org
diff --git a/packaging/deb/tuxanci.desktop b/packaging/deb/tuxanci.desktop
new file mode 100644
index 0000000..f34fcde
--- /dev/null
+++ b/packaging/deb/tuxanci.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=tuxanci-svn
+Comment=game tuxanci
+Exec=/usr/games/bin/tuxanci-svn
+Terminal=false
+Type=Application
+Icon=/usr/games/share/tuxanci-svn/images/tuxanci.png
+Encoding=UTF-8
+Categories=Game