FlashBack

This commit is contained in:
Gwenhael Le Moine 2019-01-26 14:16:43 +01:00
parent 3b026cc16e
commit f24a592987
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
5 changed files with 38 additions and 38 deletions

2
.gitignore vendored
View file

@ -37,3 +37,5 @@ xap/st/patches/st-vertcenter*
/d/crystal/completion.zsh
*.pk3
*.pk4
/xap/android-x86/android-8.1-r1/
/xap/android-x86/usr

View file

@ -5,7 +5,7 @@ TAG=${TAG:-cyco}
OUTPUT=${OUTPUT:-/tmp}
TMP=/tmp/$TAG
PRGNAM=$(basename $(CWD))
PRGNAM=$(basename $CWD)
VERSION=${VERSION:-1.0}
ARCH=${ARCH:-${ARCH:-dosbox}}
BUILD=${BUILD:-1}
@ -15,12 +15,17 @@ PKG=$TMP/pkg-$PRGNAM
rm -rf $PKG $TMP/${PRGNAM}-${VERSION}
mkdir -p $TMP
cd $TMP
mkdir -p $PKG/usr/bin $PKG/usr/share/games
mkdir -p $PKG/usr/games/ $PKG/usr/share/games/
cd $PKG/usr/share/games
# [ ! -e $CWD/flashback-x86_64.tar.gz ] & wget -c -O $CWD/flashback-x86_64.tar.gz https://lutris.net/files/games/flashback/flashback-x86_64.tar.gz
# tar xvf $CWD/flashback-x86_64.tar.gz
# mv flashback FlashBack
tar xf $CWD/FlashBack.tar.bz2
cd FlashBack
chmod a+w /usr/share/games/FlashBack/DATA/*
cat <<EOF > dosbox.config
[sdl]
@ -46,10 +51,10 @@ memsize=16
# snapdir -- Directory where screenshots get saved.
# scaler -- Scaler used to enlarge/enhance low resolution modes.
# Supported are none,normal2x,advmame2x
# scaler = none | normal2x | normal3x | tv2x | tv3x | rgb2x | rgb3x | scan2x | scan3x | advmame2x | advmame3x | advinterp2x | advinterp3x | 2xsai | super2xsai | supereagle | hq2x | hq3x
frameskip=0
snapdir=snaps
scaler=normal2x
scaler=hq3x
[cpu]
# cycles -- Amount of instructions dosbox tries to emulate each millsecond.
@ -137,10 +142,9 @@ FB.EXE
exit
EOF
cd $PKG/usr/bin
cd $PKG/usr/games/
cat <<EOF > flashback.sh
#!/bin/sh
dosbox -conf /usr/share/games/FlashBack/dosbox.config
EOF
chmod +x flashback.sh
@ -163,15 +167,15 @@ cat <<EOF > $PKG/install/slack-desc
|-----handy-ruler------------------------------------------------------|
${PRGNAM}: ${PRGNAM} (FlashBack running in DosBox)
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}:
${PRGNAM}: see /usr/doc/${PRGNAM}-${VERSION} for more.
${PRGNAM}:
${PRGNAM}:
EOF
cd $PKG

View file

@ -10,7 +10,7 @@ TMP=/tmp/$TAG
fi
PRGNAM=REminiscence
VERSION=0.1.9
VERSION=0.3.7
ARCH=${ARCH:-$(uname -m)}
BUILD=1
@ -38,6 +38,8 @@ rm -rf $PKG $TMP/${PRGNAM}-${VERSION}
cd $TMP
# --- TARBALL EXTRACTION,PATCH,MODIFY ---
[ ! -e $CWD/${PRGNAM}-${VERSION}.tar.bz2 ] && wget -c -O $CWD/${PRGNAM}-${VERSION}.tar.bz2 http://cyxdown.free.fr/reminiscence/REminiscence-${VERSION}.tar.bz2
[ ! -e $CWD/flashback-x86_64.tar.gz ] & wget -c -O $CWD/flashback-x86_64.tar.gz https://lutris.net/files/games/flashback/flashback-x86_64.tar.gz
echo "Extracting the program tarball for $PRGNAM..."
tar xf $CWD/${PRGNAM}-${VERSION}.tar.bz2
@ -47,7 +49,7 @@ cd ${PRGNAM}-${VERSION}
chown -R root.root *
find . -perm 777 -exec chmod 755 {} \;
zcat $CWD/nices_path-$VERSION.patch.gz | patch -p1
zcat $CWD/nices_path.patch.gz | patch -p1
#zcat $CWD/bad_crc.diff.gz | patch -p1
# --- BUILDING ---
@ -60,40 +62,32 @@ make
#
# Install all the needed stuff to the package dir
#
mkdir -p $PKG/usr/games $PKG/usr/share/games/ $PKG/var/lib/REminiscence
mkdir -p $PKG/usr/games $PKG/usr/share/games/ $PKG/var/lib/$PRGNAM
mv rs $PKG/usr/games/
(
cd $PKG/usr/games/
ln -s rs REminiscence
ln -s rs flashback
)
cd $PKG/usr/games/
ln -s rs REminiscence
ln -s rs flashback
(
cd $PKG/usr/share/games/
tar xf $CWD/../FlashBack/FlashBack.tar.bz2 # jeu lui-même
)
cd $PKG/usr/share/games/
tar xf $CWD/flashback-x86_64.tar.gz # jeu lui-même
mv flashback $PRGNAM
mkdir -p $PKG/usr/share/pixmaps
cp $CWD/flashback.png $PKG/usr/share/pixmaps
# --- DOCUMENTATION ---
cd $TMP/${PRGNAM}-${VERSION}
DOCS="README COPYING"
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.txt $PKG/usr/doc/$PRGNAM-$VERSION
chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/*
# Compress the man page(s)
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
# Strip binaries
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
# --- OWNERSHIP, RIGHTS ---
@ -119,13 +113,13 @@ ${PRGNAM}: ${PRGNAM} (Flashback game engine)
${PRGNAM}:
${PRGNAM}: ${PRGNAM} is a re-implementation of the engine used in the game
${PRGNAM}: Flashback made by Delphine Software and released in 1992.
${PRGNAM}:
${PRGNAM}:
${PRGNAM}: You will need the original files.
${PRGNAM}:
${PRGNAM}:
${PRGNAM}: Original files included.
${PRGNAM}:
${PRGNAM}:
${PRGNAM}: see /usr/doc/${PRGNAM}-${VERSION} for more.
${PRGNAM}:
${PRGNAM}: http://cyxdown.free.fr/reminiscence/
EOF
# --- BUILDING ---

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.