Author: kibi-guest
Date: 2007-08-12 19:40:53 +0000 (Sun, 12 Aug 2007)
New Revision: 3652

Modified:
   packages/trunk/boswars/debian/control
   packages/trunk/boswars/debian/rules
Log:
Fix various files installation, add a Suggests: on python

Modified: packages/trunk/boswars/debian/control
===================================================================
--- packages/trunk/boswars/debian/control       2007-08-12 19:38:47 UTC (rev 
3651)
+++ packages/trunk/boswars/debian/control       2007-08-12 19:40:53 UTC (rev 
3652)
@@ -32,6 +32,7 @@
 
 Package: boswars-data
 Architecture: all
+Suggests: python
 Description: futuristic real-time strategy game - data
  Bos Wars is a futuristic real-time strategy game. It is possible to play
  against human opponents over local network (LAN), internet, or against the

Modified: packages/trunk/boswars/debian/rules
===================================================================
--- packages/trunk/boswars/debian/rules 2007-08-12 19:38:47 UTC (rev 3651)
+++ packages/trunk/boswars/debian/rules 2007-08-12 19:40:53 UTC (rev 3652)
@@ -42,20 +42,28 @@
 build-arch: build-arch-stamp
 build-arch-stamp: configure-stamp 
        
-       # Add here commands to compile the arch part of the package.
-       # With OpenGL
+       # Compile with OpenGL
        scons CCFLAGS=$(CCFLAGS) opengl=1
        cp boswars boswars-gl
        
-       # Without OpenGL
+       # Compile without OpenGL
        scons CCFLAGS=$(CCFLAGS) opengl=0
        
+       # Generate the manpages from the skeleton
+       for i in boswars boswars-gl; do \
+               sed -e "s/boswars_binary_name/$$i/; 
s/BOSWARS_BINARY_NAME/\U$$i/" \
+                       debian/manpage.6.in \
+                       > debian/$$i.6; \
+       done
+       
        touch $@
 
 build-indep: build-indep-stamp
 build-indep-stamp: configure-stamp 
        
-       # Add here commands to compile the indep part of the package.
+       # Adjust the permissions
+       chmod +x languages/makesame.py
+       
        touch $@
 
 clean:
@@ -74,6 +82,9 @@
        # Additional binary, see the two-pass build target.
        -rm boswars-gl
        
+       # Manpages generated from the skeleton
+       -rm debian/boswars.6 debian/boswars-gl.6
+       
        dh_clean 
 
 install: install-indep install-arch
@@ -89,8 +100,9 @@
                cp -r $$i debian/boswars-data/$(DATA_DIR); \
        done
        
-       install -d debian/boswars/usr/share/doc/html
-       cp -r doc/* debian/boswars/usr/share/doc/html
+       # Add a shebang
+       find debian/boswars-data -name genpot.sh \
+               -exec sed -i '1{s/^/#!\/bin\/sh\n\n/}' {} ';'
        
        dh_install -i
 
@@ -102,11 +114,17 @@
        
        # Add here commands to install the arch part of the package into 
        # debian/tmp.
-       install -d debian/boswars/usr/games
-       install boswars debian/boswars/usr/games
+       for i in boswars boswars-gl; do \
+               install -d debian/$$i/usr/games;  \
+               install $$i debian/$$i/usr/games; \
+               dh_installman -p$$i debian/$$i.6; \
+       done
        
-       install -d debian/boswars-gl/usr/games
-       install boswars-gl debian/boswars-gl/usr/games
+       # Install the documentation
+       for i in boswars boswars-gl; do \
+               install -d debian/$$i/usr/share/doc/$$i/html; \
+               cp -r doc/* debian/$$i/usr/share/doc/$$i/html; \
+       done
        
        dh_install -s
 
@@ -122,7 +140,7 @@
        dh_link
        dh_strip
        dh_compress 
-       dh_fixperms
+       dh_fixperms -Xmakesame.py -Xgenpot.sh
        dh_makeshlibs
        dh_installdeb
        dh_shlibdeps


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to