games/robotfindskitten: Manually install necessary .nki file.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Josiah Boothby 2013-04-23 20:47:17 -04:00 committed by Niels Horn
parent a7123908de
commit b4271e8333
3 changed files with 22 additions and 19 deletions

View file

@ -24,15 +24,13 @@
PRGNAM=robotfindskitten PRGNAM=robotfindskitten
VERSION=${VERSION:-2.7182818.701} VERSION=${VERSION:-2.7182818.701}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -56,7 +54,7 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
set -e set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
@ -81,11 +79,15 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man \ --mandir=/usr/man \
--infodir=/usr/info \ --infodir=/usr/info \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make
make install DESTDIR=$PKG make install DESTDIR=$PKG
# make install seems to fail to install the vanilla.nki file to an expected place, so:
mkdir -p $PKG/usr/share/games/$PRGNAM
cat ./nki/vanilla.nki > $PKG/usr/share/games/$PRGNAM/vanilla.nki
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View file

@ -1,10 +1,11 @@
PRGNAM="robotfindskitten" PRGNAM="robotfindskitten"
VERSION="2.7182818.701" VERSION="2.7182818.701"
HOMEPAGE="http://robotfindskitten.org" HOMEPAGE="http://robotfindskitten.org"
DOWNLOAD="http://downloads.sourceforge.net/rfk/robotfindskitten-2.7182818.701.tar.gz" DOWNLOAD="http://robotfindskitten.org/download/POSIX/robotfindskitten-2.7182818.701.tar.gz"
MD5SUM="d70ba30874a1f51eacd8a9a2cf4efdba" MD5SUM="d70ba30874a1f51eacd8a9a2cf4efdba"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""
MAINTAINER="Josiah Boothby" MAINTAINER="Josiah Boothby"
EMAIL="josiahb@gmail.com" EMAIL="josiahb@gmail.com"

View file

@ -1,19 +1,19 @@
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line # The "handy ruler" below makes it easier to edit a package description.
# up the first '|' above the ':' following the base package name, and the '|' # Line up the first '|' above the ':' following the base package name, and
# on the right side marks the last column you can put a character in. You must # the '|' on the right side marks the last column you can put a character in.
# make exactly 11 lines for the formatting to be correct. It's also # You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'. # customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
robotfindskitten: robotfindskitten (a Zen simulation game) robotfindskitten: robotfindskitten (a Zen simulation game)
robotfindskitten: robotfindskitten:
robotfindskitten: In this game, you are robot (#). Your job is to find kitten. This robotfindskitten: In this game, you are robot (#). Your job is to find kitten. This
robotfindskitten: task is complicated by the existence of various things which are not robotfindskitten: task is complicated by the existence of various things which are not
robotfindskitten: kitten. Robot must touch items to determine if they are kitten or robotfindskitten: kitten. Robot must touch items to determine if they are kitten or
robotfindskitten: not. The game ends when robotfindskitten. robotfindskitten: not. The game ends when robotfindskitten.
robotfindskitten: robotfindskitten:
robotfindskitten: robotfindskitten:
robotfindskitten: robotfindskitten:
robotfindskitten: robotfindskitten:
robotfindskitten: robotfindskitten: