diff --git a/.gitignore b/.gitignore index 2cdcacc6..09ae36fd 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/UNUSED/y/FlashBack/SlackBuild b/y/FlashBack/SlackBuild similarity index 87% rename from UNUSED/y/FlashBack/SlackBuild rename to y/FlashBack/SlackBuild index f52f04bb..4d62843f 100755 --- a/UNUSED/y/FlashBack/SlackBuild +++ b/y/FlashBack/SlackBuild @@ -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 < 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 < flashback.sh #!/bin/sh - dosbox -conf /usr/share/games/FlashBack/dosbox.config EOF chmod +x flashback.sh @@ -163,15 +167,15 @@ cat < $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 diff --git a/UNUSED/y/REminiscence_FlashBack/SlackBuild b/y/REminiscence_FlashBack/SlackBuild similarity index 73% rename from UNUSED/y/REminiscence_FlashBack/SlackBuild rename to y/REminiscence_FlashBack/SlackBuild index 2b932bd9..bd7905d7 100755 --- a/UNUSED/y/REminiscence_FlashBack/SlackBuild +++ b/y/REminiscence_FlashBack/SlackBuild @@ -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 --- diff --git a/y/REminiscence_FlashBack/flashback.png b/y/REminiscence_FlashBack/flashback.png new file mode 100644 index 00000000..e92e1857 Binary files /dev/null and b/y/REminiscence_FlashBack/flashback.png differ diff --git a/y/REminiscence_FlashBack/nices_path.patch.gz b/y/REminiscence_FlashBack/nices_path.patch.gz new file mode 100644 index 00000000..274e7ca7 Binary files /dev/null and b/y/REminiscence_FlashBack/nices_path.patch.gz differ