diff options
Diffstat (limited to 'games/cubosphere')
-rw-r--r-- | games/cubosphere/README | 13 | ||||
-rw-r--r-- | games/cubosphere/cubosphere.SlackBuild | 16 |
2 files changed, 20 insertions, 9 deletions
diff --git a/games/cubosphere/README b/games/cubosphere/README index a626d23347..08dc5ce7d9 100644 --- a/games/cubosphere/README +++ b/games/cubosphere/README @@ -1,7 +1,8 @@ -Goal of this project is a remake of the Playstation 1 Game "Kula World" / "Roll -Away". It is designed platform independend, written in C++ and using the -following libraries: OpenGL, SDL (Simple DirectMedia Layer), libjpeg, LUA, -GLSL-Shader. +Goal of this project is a remake of the Playstation 1 Game "Kula World" +/ "Roll Away". It is designed platform independend, written in C++ and +using the following libraries: OpenGL, SDL (Simple DirectMedia Layer), +libjpeg, LUA, GLSL-Shader. -Note: In order to load the background music (eg. loading *.mp3 files), install -smpeg and then rebuild the sdl package that comes with Slackware. +Note: In order to load the background music (eg. loading *.mp3 files), +install smpeg and then rebuild the sdl package that comes with +Slackware. diff --git a/games/cubosphere/cubosphere.SlackBuild b/games/cubosphere/cubosphere.SlackBuild index 3a2da51d2e..abc46428bb 100644 --- a/games/cubosphere/cubosphere.SlackBuild +++ b/games/cubosphere/cubosphere.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for cubosphere @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=cubosphere VERSION=${VERSION:-beta0.3a} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -100,4 +110,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |