diff options
author | 2025-06-14 08:39:30 +0700 | |
---|---|---|
committer | 2025-06-14 09:11:42 +0700 | |
commit | 7127e7f163b002d80b3ff387c1c8d6fdb04bfebd (patch) | |
tree | b4a1b93365a10e1e26354ae4513d1133c9bba6ba | |
parent | c5625c646d8802f6cf8c2b4f67658113e57c8a14 (diff) | |
download | slackbuilds-7127e7f163b002d80b3ff387c1c8d6fdb04bfebd.tar.gz slackbuilds-7127e7f163b002d80b3ff387c1c8d6fdb04bfebd.tar.xz |
games/starlanes: Added (text based economic conquest games).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/starlanes/README | 5 | ||||
-rw-r--r-- | games/starlanes/slack-desc | 19 | ||||
-rw-r--r-- | games/starlanes/starlanes.SlackBuild | 63 | ||||
-rw-r--r-- | games/starlanes/starlanes.info | 10 |
4 files changed, 97 insertions, 0 deletions
diff --git a/games/starlanes/README b/games/starlanes/README new file mode 100644 index 0000000000..9f915785b8 --- /dev/null +++ b/games/starlanes/README @@ -0,0 +1,5 @@ +This simple game has a long history, Star Trader was written by Dave +Kaufman in BASIC in 1974. Steven Farber wrote a clone called Star +Lanes for the computer magazine Interface Age. This version, from +1997, is a C port of Starlanes for the Osborne 1. It is a very old +game, but the code is simple and compiles easily on modern systems. diff --git a/games/starlanes/slack-desc b/games/starlanes/slack-desc new file mode 100644 index 0000000000..5232a8ed33 --- /dev/null +++ b/games/starlanes/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +starlanes: starlanes (economic conquest game) +starlanes: +starlanes: This simple game has a long history, Star Trader was written by Dave +starlanes: Kaufman in BASIC in 1974. Steven Farber wrote a clone called Star +starlanes: Lanes for the computer magazine Interface Age. This version, from +starlanes: 1997, is a C port of Starlanes for the Osborne 1. It is a very old +starlanes: game, but the code is simple and compiles easily on modern systems. +starlanes: +starlanes: +starlanes: +starlanes: diff --git a/games/starlanes/starlanes.SlackBuild b/games/starlanes/starlanes.SlackBuild new file mode 100644 index 0000000000..adbdcaa954 --- /dev/null +++ b/games/starlanes/starlanes.SlackBuild @@ -0,0 +1,63 @@ +#!/bin/bash +# Slackware build script for starlanes +# Written by Dan-Simon Myrland <dansimon@radiotube.org> + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=starlanes +VERSION=${VERSION:-1.2.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +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} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# minor fixes +rm -f starlanes +sed -i 's/restrict/restrictinput/g' starlanes.c + +make +install -m 2755 -D $PRGNAM $PKG/usr/bin/$PRGNAM +strip --strip-unneeded $PKG/usr/bin/$PRGNAM 2> /dev/null +install -m 0644 -D $PRGNAM.6 $PKG/usr/man/man6/$PRGNAM.6 +gzip -9 $PKG/usr/man/man6/$PRGNAM.6 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/starlanes/starlanes.info b/games/starlanes/starlanes.info new file mode 100644 index 0000000000..f2bf5469bb --- /dev/null +++ b/games/starlanes/starlanes.info @@ -0,0 +1,10 @@ +PRGNAM="starlanes" +VERSION="1.2.2" +HOMEPAGE="https://www.freshports.org/games/starlanes" +DOWNLOAD="http://www.gtlib.gatech.edu/pub/Linux/games/strategy/starlanes-1.2.2.tar.gz" +MD5SUM="c340e5b71070cea48de57231dc23b255" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Dan-Simon Myrland" +EMAIL="dansimon@radiotube.org" |