FlashBack
This commit is contained in:
parent
3b026cc16e
commit
f24a592987
5 changed files with 38 additions and 38 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -37,3 +37,5 @@ xap/st/patches/st-vertcenter*
|
||||||
/d/crystal/completion.zsh
|
/d/crystal/completion.zsh
|
||||||
*.pk3
|
*.pk3
|
||||||
*.pk4
|
*.pk4
|
||||||
|
/xap/android-x86/android-8.1-r1/
|
||||||
|
/xap/android-x86/usr
|
||||||
|
|
|
@ -5,7 +5,7 @@ TAG=${TAG:-cyco}
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
TMP=/tmp/$TAG
|
TMP=/tmp/$TAG
|
||||||
|
|
||||||
PRGNAM=$(basename $(CWD))
|
PRGNAM=$(basename $CWD)
|
||||||
VERSION=${VERSION:-1.0}
|
VERSION=${VERSION:-1.0}
|
||||||
ARCH=${ARCH:-${ARCH:-dosbox}}
|
ARCH=${ARCH:-${ARCH:-dosbox}}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
|
@ -15,12 +15,17 @@ PKG=$TMP/pkg-$PRGNAM
|
||||||
|
|
||||||
rm -rf $PKG $TMP/${PRGNAM}-${VERSION}
|
rm -rf $PKG $TMP/${PRGNAM}-${VERSION}
|
||||||
|
|
||||||
|
mkdir -p $TMP
|
||||||
cd $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
|
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
|
tar xf $CWD/FlashBack.tar.bz2
|
||||||
cd FlashBack
|
cd FlashBack
|
||||||
|
chmod a+w /usr/share/games/FlashBack/DATA/*
|
||||||
|
|
||||||
cat <<EOF > dosbox.config
|
cat <<EOF > dosbox.config
|
||||||
[sdl]
|
[sdl]
|
||||||
|
@ -46,10 +51,10 @@ memsize=16
|
||||||
# snapdir -- Directory where screenshots get saved.
|
# snapdir -- Directory where screenshots get saved.
|
||||||
# scaler -- Scaler used to enlarge/enhance low resolution modes.
|
# scaler -- Scaler used to enlarge/enhance low resolution modes.
|
||||||
# Supported are none,normal2x,advmame2x
|
# 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
|
frameskip=0
|
||||||
snapdir=snaps
|
snapdir=snaps
|
||||||
scaler=normal2x
|
scaler=hq3x
|
||||||
|
|
||||||
[cpu]
|
[cpu]
|
||||||
# cycles -- Amount of instructions dosbox tries to emulate each millsecond.
|
# cycles -- Amount of instructions dosbox tries to emulate each millsecond.
|
||||||
|
@ -137,10 +142,9 @@ FB.EXE
|
||||||
exit
|
exit
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cd $PKG/usr/bin
|
cd $PKG/usr/games/
|
||||||
cat <<EOF > flashback.sh
|
cat <<EOF > flashback.sh
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
dosbox -conf /usr/share/games/FlashBack/dosbox.config
|
dosbox -conf /usr/share/games/FlashBack/dosbox.config
|
||||||
EOF
|
EOF
|
||||||
chmod +x flashback.sh
|
chmod +x flashback.sh
|
||||||
|
@ -163,15 +167,15 @@ cat <<EOF > $PKG/install/slack-desc
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
${PRGNAM}: ${PRGNAM} (FlashBack running in DosBox)
|
${PRGNAM}: ${PRGNAM} (FlashBack running in DosBox)
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}: see /usr/doc/${PRGNAM}-${VERSION} for more.
|
${PRGNAM}: see /usr/doc/${PRGNAM}-${VERSION} for more.
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
|
@ -10,7 +10,7 @@ TMP=/tmp/$TAG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PRGNAM=REminiscence
|
PRGNAM=REminiscence
|
||||||
VERSION=0.1.9
|
VERSION=0.3.7
|
||||||
ARCH=${ARCH:-$(uname -m)}
|
ARCH=${ARCH:-$(uname -m)}
|
||||||
BUILD=1
|
BUILD=1
|
||||||
|
|
||||||
|
@ -38,6 +38,8 @@ rm -rf $PKG $TMP/${PRGNAM}-${VERSION}
|
||||||
cd $TMP
|
cd $TMP
|
||||||
|
|
||||||
# --- TARBALL EXTRACTION,PATCH,MODIFY ---
|
# --- 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..."
|
echo "Extracting the program tarball for $PRGNAM..."
|
||||||
tar xf $CWD/${PRGNAM}-${VERSION}.tar.bz2
|
tar xf $CWD/${PRGNAM}-${VERSION}.tar.bz2
|
||||||
|
@ -47,7 +49,7 @@ cd ${PRGNAM}-${VERSION}
|
||||||
chown -R root.root *
|
chown -R root.root *
|
||||||
find . -perm 777 -exec chmod 755 {} \;
|
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
|
#zcat $CWD/bad_crc.diff.gz | patch -p1
|
||||||
|
|
||||||
# --- BUILDING ---
|
# --- BUILDING ---
|
||||||
|
@ -60,40 +62,32 @@ make
|
||||||
#
|
#
|
||||||
# Install all the needed stuff to the package dir
|
# 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/
|
mv rs $PKG/usr/games/
|
||||||
|
|
||||||
(
|
cd $PKG/usr/games/
|
||||||
cd $PKG/usr/games/
|
ln -s rs REminiscence
|
||||||
ln -s rs REminiscence
|
ln -s rs flashback
|
||||||
ln -s rs flashback
|
|
||||||
)
|
|
||||||
|
|
||||||
(
|
cd $PKG/usr/share/games/
|
||||||
cd $PKG/usr/share/games/
|
tar xf $CWD/flashback-x86_64.tar.gz # jeu lui-même
|
||||||
tar xf $CWD/../FlashBack/FlashBack.tar.bz2 # jeu lui-même
|
mv flashback $PRGNAM
|
||||||
)
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/share/pixmaps
|
mkdir -p $PKG/usr/share/pixmaps
|
||||||
cp $CWD/flashback.png $PKG/usr/share/pixmaps
|
cp $CWD/flashback.png $PKG/usr/share/pixmaps
|
||||||
|
|
||||||
# --- DOCUMENTATION ---
|
# --- DOCUMENTATION ---
|
||||||
cd $TMP/${PRGNAM}-${VERSION}
|
cd $TMP/${PRGNAM}-${VERSION}
|
||||||
DOCS="README COPYING"
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
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/*
|
chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/*
|
||||||
|
|
||||||
# Compress the man page(s)
|
# Compress the man page(s)
|
||||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||||
|
|
||||||
# Strip binaries
|
# Strip binaries
|
||||||
( cd $PKG
|
find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||||
find . | 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
|
||||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# --- OWNERSHIP, RIGHTS ---
|
# --- OWNERSHIP, RIGHTS ---
|
||||||
|
|
||||||
|
@ -119,13 +113,13 @@ ${PRGNAM}: ${PRGNAM} (Flashback game engine)
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}: ${PRGNAM} is a re-implementation of the engine used in the game
|
${PRGNAM}: ${PRGNAM} is a re-implementation of the engine used in the game
|
||||||
${PRGNAM}: Flashback made by Delphine Software and released in 1992.
|
${PRGNAM}: Flashback made by Delphine Software and released in 1992.
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}: You will need the original files.
|
${PRGNAM}: You will need the original files.
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}: Original files included.
|
${PRGNAM}: Original files included.
|
||||||
${PRGNAM}:
|
${PRGNAM}:
|
||||||
${PRGNAM}: see /usr/doc/${PRGNAM}-${VERSION} for more.
|
${PRGNAM}: see /usr/doc/${PRGNAM}-${VERSION} for more.
|
||||||
${PRGNAM}:
|
${PRGNAM}: http://cyxdown.free.fr/reminiscence/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# --- BUILDING ---
|
# --- BUILDING ---
|
BIN
y/REminiscence_FlashBack/flashback.png
Normal file
BIN
y/REminiscence_FlashBack/flashback.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
BIN
y/REminiscence_FlashBack/nices_path.patch.gz
Normal file
BIN
y/REminiscence_FlashBack/nices_path.patch.gz
Normal file
Binary file not shown.
Loading…
Reference in a new issue