Added Linux build scripts.

This commit is contained in:
Steve 2015-12-03 11:36:07 +00:00
parent 9825e39f4f
commit f78446e50e
2 changed files with 55 additions and 0 deletions

44
build/buildLinux.sh Executable file
View File

@ -0,0 +1,44 @@
#!/bin/bash -e
BUILDROOT="build/tbftss"
VERSION=0.4
REVISION=`date +"%y%m%d"`
SIZE=0
cd ..
#make clean
#make
#make dist
mkdir -p $BUILDROOT
rm -rf $BUILDROOT/*
mkdir -p $BUILDROOT/DEBIAN
mkdir -p $BUILDROOT/usr/bin
cp tbftss $BUILDROOT/usr/bin
mkdir -p $BUILDROOT/opt/tbftss
cp -r data $BUILDROOT/opt/tbftss
cp -r gfx $BUILDROOT/opt/tbftss
cp -r music $BUILDROOT/opt/tbftss
cp -r sound $BUILDROOT/opt/tbftss
cp -r manual $BUILDROOT/opt/tbftss
SIZE=`du -bs $BUILDROOT | cut -f -1`
SIZE=`expr $SIZE / 1024`
sed \
-e "s/\${version}/$VERSION-$REVISION/" \
-e "s/\${size}/$SIZE/" \
build/control > $BUILDROOT/DEBIAN/control
cd build
dpkg-deb --build tbftss
mv tbftss.deb ../dist/tbftss-${VERSION}-${REVISION}_i386.deb
rm -rf tbftss

11
build/control Normal file
View File

@ -0,0 +1,11 @@
Source: tbftss
Package: tbftss
Version: ${version}
Section: games
Priority: optional
Installed-Size: ${size}
Architecture: all
Depends: libsdl2-2.0-0, libsdl2-image-2.0-0, libsdl2-mixer-2.0-0, libsdl2-ttf-2.0-0
Maintainer: stephenjsweeney@battleforthesolarsystem.com
Description: 2D mission-based space shooter, based on the Battle for the Solar System space opera novel trilogy.
Homepage: www.battleforthesolarsystem.com/games/pw