summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Reurich <daniel@centurion.net.nz>2014-12-17 00:48:19 +1300
committerDaniel Reurich <daniel@centurion.net.nz>2014-12-17 00:48:19 +1300
commit23c7d6d8c23540d5246d7a57cf090aea4edcc55f (patch)
tree60d9d05478d042a5a5bc06ad5b3e9964d9e366a0
parente6b4fb071af74d07ae08b84e24d3ea4fe5f6fbd9 (diff)
downloadxlennart-23c7d6d8c23540d5246d7a57cf090aea4edcc55f.tar.gz
xlennart-23c7d6d8c23540d5246d7a57cf090aea4edcc55f.tar.bz2
xlennart-23c7d6d8c23540d5246d7a57cf090aea4edcc55f.zip
Add desktop integration
-rwxr-xr-xdebian/control4
-rwxr-xr-xdebian/copyright57
-rw-r--r--debian/menu5
-rw-r--r--debian/postinst24
-rw-r--r--debian/postrm11
-rwxr-xr-xdebian/rules16
-rw-r--r--debian/xlennart.desktop10
-rw-r--r--debian/xlennart.install2
-rw-r--r--debian/xlennart.xpm86
9 files changed, 212 insertions, 3 deletions
diff --git a/debian/control b/debian/control
index 4c30f4b..910f321 100755
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
Source: xlennart
Maintainer: Daniel Reurich <daniel@centurion.net.nz>
-Section: misc
-Priority: optional
+Section: games
+Priority: extra
Standards-Version: 3.9.2
Build-Depends: debhelper (>= 9)
diff --git a/debian/copyright b/debian/copyright
index e69de29..35ee030 100755
--- a/debian/copyright
+++ b/debian/copyright
@@ -0,0 +1,57 @@
+This package was debianized by Daniel Reurich <daniel@centurion.net.nz>
+
+It was downloaded from:
+https://github.com/Xylemon/xlennart
+
+From the original README file:
+
+...
+COPYING
+ Copyright (c) 1994-6 Psychosoft
+
+ It's FREE! If you want to express your undying gratitude
+ to us for bringing a small bit of meaning into your other-
+ wise pointless existence, you could always send us e-mail.
+ XBill is distributed under the GNU Public License.
+
+ Go play the game now!
+...
+
+Authors:
+ Main Programmer:
+ Brian Wellington <bwelling@xbill.org> for XBill 2.1
+ Gethyn ThomasQuail <xylem2020@gmail.com> for XLennart
+ Programming & graphics (v2.0 and earlier):
+ Matias Duarte <matias@hyperimage.com> for XBill
+ Daniel Reurich <daniel@centurion.net.nz> for XLennart
+
+Additonal Credits - XLennart:
+
+ Michael Shigorin <shigorin@gmail.com> for configure and
+ makefile clean up. Along with the addition of the GTK2
+ patch (1.1)
+
+ Dmitrij D. Czarkoff <czarkoff@gmail.com> for small code
+ clean up (1.1) and OpenBSD modifications
+
+
+License:
+
+ 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 of the License, 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 package; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+ On Debian GNU/Linux systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+
diff --git a/debian/menu b/debian/menu
new file mode 100644
index 0000000..0fb9f07
--- /dev/null
+++ b/debian/menu
@@ -0,0 +1,5 @@
+?package(xlennart):command="/usr/games/xlennart" \
+ icon="/usr/share/pixmaps/xlennart.xpm" \
+ needs="X11" \
+ section="Games/Action" \
+ title="xlennart"
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..551a888
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+OLD=/var/lib/games/xlennart/scores
+OLD2=/var/lib/games/xlennart.scores
+SCORES=/var/games/xlennart.scores
+
+if [ -e $OLD ]; then
+ mv $OLD $SCORES
+ rmdir /var/lib/games/xlennart
+elif [ -e $OLD2 ]; then
+ mv $OLD2 $SCORES
+else
+ if [ ! -e $SCORES ]; then
+ cp $SCORES.default $SCORES
+ fi
+fi
+
+chown root:games $SCORES
+chmod 0664 $SCORES
+
+#DEBHELPER#
+
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..9e0acdc
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "purge" ]; then
+ rm -f /var/games/xlennart.scores
+ rmdir /var/lib/games/xlennart /var/games/xlennart 2>/dev/null || true
+fi
+
+#DEBHELPER#
+
diff --git a/debian/rules b/debian/rules
index cbe925d..ab2a5bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,3 +1,17 @@
#!/usr/bin/make -f
+
+DEB=debian/tmp
+SCORES=$(DEB)/var/games/xlennart.scores.default
+
%:
- dh $@
+ dh $@ --parallel
+
+override_dh_auto_configure:
+ dh_auto_configure -- --bindir=\$${prefix}/games --disable-gtk --disable-motif --enable-athena
+
+override_dh_fixperms:
+ dh_fixperms
+ chown root:games $(CURDIR)/debian/xlennart/usr/games/xlennart
+ chown root:games $(CURDIR)/debian/xlennart/var/games/xlennart.scores.default
+ chmod 2755 $(CURDIR)/debian/xlennart/usr/games/xlennart
+ chmod 0664 $(CURDIR)/debian/xlennart/var/games/xlennart.scores.default
diff --git a/debian/xlennart.desktop b/debian/xlennart.desktop
new file mode 100644
index 0000000..4e18dba
--- /dev/null
+++ b/debian/xlennart.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=XLennart
+Comment=Get rid of those SystemD viruses!
+Comment[it]=Fai piazza pulita dai virus SystemD!
+Icon=xlennart
+Exec=xlennart
+Terminal=false
+Categories=Game;ArcadeGame;
+
diff --git a/debian/xlennart.install b/debian/xlennart.install
new file mode 100644
index 0000000..80ca0ff
--- /dev/null
+++ b/debian/xlennart.install
@@ -0,0 +1,2 @@
+debian/xlennart.xpm usr/share/pixmaps/
+debian/xlennart.desktop usr/share/applications/
diff --git a/debian/xlennart.xpm b/debian/xlennart.xpm
new file mode 100644
index 0000000..6851210
--- /dev/null
+++ b/debian/xlennart.xpm
@@ -0,0 +1,86 @@
+/* XPM */
+static char * xlennart_xpm[] = {
+"64 64 19 1",
+" c None",
+". c #68B0E8",
+"+ c #A8C8E0",
+"@ c #40B0E8",
+"# c #0070B0",
+"$ c #F0F8F8",
+"% c #F8F8F8",
+"& c #F0F0D8",
+"* c #604060",
+"= c #F8F890",
+"- c #D8B858",
+"; c #88A070",
+"> c #D0D081",
+", c #000000",
+"' c #303860",
+") c #FFFFFF",
+"! c #004888",
+"~ c #5D3C5D",
+"{ c #503050",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" .+.. ",
+" .@#####..+###########@. ",
+" @###########.$+$$$$$...@@@#@#### ",
+" #@@#@@.$+@@@.$+$$$$$+$#@.@@.#@@@### ",
+" ##@@@@.$+@@@.$+$%&++++*.#@@@#@@@@@.++# ",
+" ##@@#@$+@@@.$+$$&&&=&--**.+@@@@@@@+$$$## ",
+" .#+@##$.#@@.$+$$&&&=&----**#*@@@@@@$$$$+## ",
+" .#.@.$.####$+$%%&&=&-------#-*@*@@.$$%$.@# ",
+" ##@.$.###@$.$$%&&=&--------#;-*-*@+$$++#@# ",
+" #@.$+####$+$$%+&=&---------#;*--*@%+$$.@@@# ",
+" #.$+@@#@$.$$%=&=&----------#;----;%$$$@@@@@# ",
+" #..@@@.$.$$$+&=&-----------#;----&+$$+@@@@@# ",
+" ###@@.$+$$$+&=&------->----#;----%;$$@@@@@@# ",
+" #@##.$$$$$.+=&------>------#;---=%%$$@@@@@@# ",
+" #@@#$$$$$.++&---------->---#;---&=&$.@@@@@@# ",
+" #@.$+$$$+$.+--------->-----#;---%=$+@@@@@@@# ",
+" #.$++$$+$++#*,,,,,,-,,,,,,,'',,,+%+@@@@@@@@# ",
+" #$+$$$+$+$###,))))),,))))))'',*$;&.#@@@@@@@# ",
+" #++$$.$+$@@**,))))),,))))))'.%*$.$@!#@@@@@@# ",
+" ++$$+++$@@@**,,,,,,,%,,,,,,'**++%+*@!#@@@@@# ",
+" +$$+$++@@@@*%~)))))%&&)&)&).#*%*%%*#@!#@@@@# ",
+" .$+++$#@@@@*&%&,,,%&%&)&)&%'#*%%%**!@@!#@@@# ",
+" @.++$@##@@@****{{*&*&%&%&%*+#$&%&*!!!@@!#@@# ",
+" @+.$#@@#@@@@@*{{{*%&*&%&%*{+#$%%%*!!!!@@!#@# ",
+" #++###@##@@@@@*{{{*%&%&%*{{+#+++**!!!!!@@!@@ ",
+" .$####@@##@@@@*{{{{*%&%**{{+#&%;*@!!!!!!#@+. ",
+" #######@##@@@@#*{{*{***{{{%$.&%*@@@!!!!!!#$@ ",
+" #######@@#@@@@##*{*{*{{*{%%%.%*@@@@@@!!!!..# ",
+" #######@@##@@@@#*{*{*{*{%%%&+&.#@@@@@@!!!$!. ",
+" #@######@@#@@@@@*{{**{{&%%&%$$!!#@@@@@@!#+#+ ",
+" ##@######@##@@@@*{{**{&%%&%%%;!!!#@@@@@@+#.. ",
+" #@@######@@#@@@@*{{{*%%%&%%&@'!!!!#@@@@.$!+. ",
+" #@@@######@##@@@*{{%%%%&%%&&!'!!!!!#@@@+++ ",
+" ##@@#######@##@@*{%&%%&%%%&{!{!!!!!!#@@$+ . ",
+" ##@@@######@##@@.&+$$++%%;**!!#!!!!!!!+++ ! ",
+" ##@@@@######@#@.$+$%&%%%{{{*!'@!!!!!!!$. ! ",
+" ##@@@@######@#@&+$$&%%${{{**!'{@!!!!!!+# +!@ ",
+" ##@@@@@######@&+$$&%%%{{{*{*!'{@@#!!!+#..+@#+ ",
+" .#@@@@@#####.$+$$+&&&{{{*{***{{@@@#!!$!$+@.# ",
+" +#@@@@@@####$$$$%%&%*{******'!@@##!!..!++@#@ ",
+" ++@.@@@###++$$%%%%*********#!!#####$@+++@!+ ",
+" @#@@@####+.$$$$$.#***#****##@#!#@@.+@$+#!#@@@@ ",
+" @!#####$+$$$$$+@@@@@#!######@#!##+#!.#@@#@@@@+ ",
+" @##@#!!!!++$$$$++######!!#@@#######!.##@@@@@#@@.+ ",
+" @@@@@@####!##!!!!!!!!!!####!!!!!!####@@@@@@@@#@.+ ",
+" .#@#@@@@@@@@@@@@#####@@#######@@#@@@@@@@@@@#@. ",
+" @##@@@@@@@@@@@@@@@@@@@##@@@@@@@#@@@@@@@@. ",
+" .@@@..@..@@@@@@##@@@@@@@ ",
+" ..#@@. ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" "};