From f78446e50e390f1e07a5d3eab5c84104a4f42725 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 3 Dec 2015 11:36:07 +0000 Subject: [PATCH] Added Linux build scripts. --- build/buildLinux.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ build/control | 11 +++++++++++ 2 files changed, 55 insertions(+) create mode 100755 build/buildLinux.sh create mode 100644 build/control diff --git a/build/buildLinux.sh b/build/buildLinux.sh new file mode 100755 index 0000000..3ce3a43 --- /dev/null +++ b/build/buildLinux.sh @@ -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 diff --git a/build/control b/build/control new file mode 100644 index 0000000..b739b22 --- /dev/null +++ b/build/control @@ -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