[SCM] advanced 3D real time strategy game engine branch, master, updated. upstream/0.80.5.1-10-g6b7fa73

Marco Amadori marco.amadori at gmail.com
Mon Oct 26 10:57:26 UTC 2009


The following commit has been merged in the master branch:
commit 6b7fa73679980e104b3290f6f16f2ed8ef603d11
Author: Marco Amadori <marco.amadori at gmail.com>
Date:   Mon Oct 26 02:32:31 2009 +0100

    Split package in -common.

diff --git a/debian/control b/debian/control
index e2c2b18..2a8856c 100644
--- a/debian/control
+++ b/debian/control
@@ -37,7 +37,7 @@ Homepage: http://springrts.com
 
 Package: spring
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ttf-freefont
+Depends: ${shlibs:Depends}, ${misc:Depends}, spring-common
 Conflicts: spring-engine
 Recommends: springlobby | spring-lobby
 Suggests: spring-maps-deltasiege | spring-map, spring-mods-kernelpanic | spring-mod
@@ -48,3 +48,16 @@ Description: advanced 3D real time strategy game engine
  .
  This package just includes the bare engine and the default AI, no maps, mods
  or rich user interface.
+
+Package: spring-common
+Architecture: all
+Depends: ${misc:Depends}, ttf-freefont, spring
+Conflicts: spring-engine
+Recommends: springlobby | spring-lobby
+Suggests: spring-maps-deltasiege | spring-map, spring-mods-kernelpanic | spring-mod
+Description: advanced 3D real time strategy game common files
+ Spring is a modern full 3D RTS (Real Time Strategy) game engine originally
+ created to bring the gameplay experience of Total Annihilation in 3D.
+ Games are played using one of a number of mods.
+ .
+ This package just includes the arch independet files.
diff --git a/debian/rules b/debian/rules
index c350c33..4d66b87 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-PKGDIR := $(CURDIR)/debian/spring
+TMPINSTDIR := $(CURDIR)/debian/tmp
 
 override_dh_auto_configure:
 	dh_auto_configure -- -DBINDIR=/usr/games -DLIBDIR=/usr/lib/spring -DAI_DATADIR=/usr/lib/spring -DCMAKE_BUILD_TYPE=RELEASE
@@ -14,13 +14,16 @@ override_dh_auto_build:
 
 override_dh_auto_install:
 	dh_auto_install
+	
 	# Configure spring to use ~/.spring as user data directory.
-	mkdir -p $(PKGDIR)/etc/spring
-	echo '$$HOME/.spring' > $(PKGDIR)/etc/spring/datadir
+	mkdir -p $(TMPINSTDIR)/etc/spring
+	echo '$$HOME/.spring' > $(TMPINSTDIR)/etc/spring/datadir
 	
-	# remove fonts, provide a symlink instead
-	find $(PKGDIR)/usr/share/games/spring/fonts -type f | xargs -i rm {}
-	ln -s /usr/share/fonts/truetype/freefont/FreeSansBold.ttf $(PKGDIR)/usr/share/games/spring/fonts/FreeSansBold.ttf
+	# remove the tarball included font and
+	# provide a symlink to the packaged one instead
+	rm -rf $(TMPINSTDIR)/usr/share/games/spring/fonts
+	mkdir -p $(TMPINSTDIR)/usr/share/games/spring/fonts
+	ln -s /usr/share/fonts/truetype/freefont/FreeSansBold.ttf $(TMPINSTDIR)/usr/share/games/spring/fonts
 
 override_dh_installchangelogs:
 	dh_installchangelogs Documentation/changelog.txt
diff --git a/debian/spring-common.install b/debian/spring-common.install
new file mode 100644
index 0000000..ee72232
--- /dev/null
+++ b/debian/spring-common.install
@@ -0,0 +1,2 @@
+usr/share
+etc
diff --git a/debian/spring.install b/debian/spring.install
new file mode 100644
index 0000000..78c0806
--- /dev/null
+++ b/debian/spring.install
@@ -0,0 +1,3 @@
+usr/share/applications
+usr/games
+usr/lib

-- 
advanced 3D real time strategy game engine



More information about the Pkg-games-commits mailing list