[SCM] packaging for the mame arcade game emulator branch, master, updated. 06e8432f02100d9a7d3ef417abc7781f7cfd81db
Cesare Falco
cesare.falco at gmail.com
Sun Mar 11 22:28:19 UTC 2012
The following commit has been merged in the master branch:
commit c03498bb7260652600ee29f22b2c4a67b4271fd3
Author: Cesare Falco <cesare.falco at gmail.com>
Date: Sat Mar 10 14:47:51 2012 +0100
Fix dependencies for Ubuntu backward compatibility
diff --git a/debian/sdlmame.preinst b/debian/sdlmame.preinst
new file mode 100644
index 0000000..527a0b3
--- /dev/null
+++ b/debian/sdlmame.preinst
@@ -0,0 +1,74 @@
+#! /bin/sh
+
+# preinst script for sdlmame
+# (c) Copyright 2007 Cesare Falco
+#
+# Licensed under the GNU General Public License, version 2. See the file
+# /usr/share/common-licenses/GPL-2 or <http://www.gnu.org/copyleft/gpl.txt>.
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+# starting with 0.118 .cfg file format is changed heavily
+# and the /etc/sdlmame tree has been restructured
+# they *must* be deleted on upgrading or they *will* get sdlmame stunned
+
+# starting with 0.128u7 joystick remapping is switch-driven
+
+case "$1" in
+ install)
+ ;;
+
+ upgrade)
+ if dpkg --compare-versions "$2" lt "0.118"; then
+ rm -rf /etc/sdlmame/ini
+ fi
+ if dpkg --compare-versions "$2" lt "0.128u7"; then
+ rm -f /etc/sdlmame/joymap.dat
+ fi
+ if dpkg --compare-versions "$2" lt "0.130u1"; then
+ rm -rf /var/games/sdlmame
+ fi
+ if dpkg --compare-versions "$2" lt "0.133"; then
+ if [ -d /usr/local/share/games/sdlmame/crsshair ] &&
+ [ ! -e /usr/local/share/games/sdlmame/crosshair ]; then
+ mv /usr/local/share/games/sdlmame/crsshair \
+ /usr/local/share/games/sdlmame/crosshair
+ fi
+ fi
+ if dpkg --compare-versions "$2" lt "0.136u1"; then
+ if [ -d /etc/sdlmame ] && [ ! -e /etc/mame ]; then
+ mv /etc/sdlmame /etc/mame
+ fi
+ if [ -d /usr/local/share/games/sdlmame ] &&
+ [ ! -e /usr/local/share/games/mame ]; then
+ mv /usr/local/share/games/sdlmame \
+ /usr/local/share/games/mame
+ fi
+ fi
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/shlibs.local b/debian/shlibs.local
new file mode 100644
index 0000000..e62a269
--- /dev/null
+++ b/debian/shlibs.local
@@ -0,0 +1,2 @@
+libexpat 1 libexpat1 (>= 2.0.1)
+libSDL-1.2 0 libsdl1.2debian (>= 1.2.13)
--
packaging for the mame arcade game emulator
More information about the Pkg-games-commits
mailing list