summaryrefslogtreecommitdiff
path: root/source/xap/xgames/xgames.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/xgames/xgames.SlackBuild')
-rwxr-xr-xsource/xap/xgames/xgames.SlackBuild35
1 files changed, 12 insertions, 23 deletions
diff --git a/source/xap/xgames/xgames.SlackBuild b/source/xap/xgames/xgames.SlackBuild
index f688a41c..6931b8dc 100755
--- a/source/xap/xgames/xgames.SlackBuild
+++ b/source/xap/xgames/xgames.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=xgames
VERSION=0.3
-BUILD=${BUILD:-5}
+BUILD=${BUILD:-6}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -53,10 +53,11 @@ mkdir -p $TMP $PKG
# Build spider:
cd $TMP
-tar xvf $CWD/spider.tar.gz || exit 1
+tar xvf $CWD/spider.tar.lz || exit 1
cd spider || exit 1
zcat $CWD/spider.diff.gz | patch -p1 --verbose || exit 1
xmkmf
+zcat $CWD/spider.gcc10.diff.gz | patch -p1 --verbose || exit 1
make $NUMJOBS || make || exit 1
mkdir -p $PKG/usr/bin
cat spider > $PKG/usr/bin/spider
@@ -67,7 +68,7 @@ cp -a README* $PKG/usr/doc/xgames-$VERSION/spider
# Build maze:
cd $TMP
-tar xvf $CWD/maze.tar.gz || exit 1
+tar xvf $CWD/maze.tar.lz || exit 1
cd maze || exit 1
zcat $CWD/maze.diff.gz | patch -p1 || exit 1
xmkmf
@@ -79,7 +80,7 @@ cp -a README $PKG/usr/doc/xgames-$VERSION/maze
# Build xcolormap:
cd $TMP
-tar xvf $CWD/xcolormap.tar.gz || exit 1
+tar xvf $CWD/xcolormap.tar.lz || exit 1
cd xcolormap || exit 1
zcat $CWD/xcolormap.diff.gz | patch -p1 || exit 1
make $NUMJOBS || make || exit 1
@@ -89,7 +90,7 @@ cp -a README $PKG/usr/doc/xgames-$VERSION/xcolormap
# Build xcuckoo:
cd $TMP
-tar xvf $CWD/xcuckoo-1.1.tar.gz || exit 1
+tar xvf $CWD/xcuckoo-1.1.tar.lz || exit 1
cd xcuckoo || exit 1
zcat $CWD/xcuckoo.diff.gz | patch -p1 --verbose || exit 1
xmkmf
@@ -101,7 +102,7 @@ cp -a CHANGES $PKG/usr/doc/xgames-$VERSION/xcuckoo
# Build xlander:
cd $TMP
-tar xvf $CWD/xlander.tar.gz || exit 1
+tar xvf $CWD/xlander.tar.lz || exit 1
cd xlander || exit 1
zcat $CWD/xlander.fixes.diff.gz | patch -p1 || exit 1
zcat $CWD/xlander-2009-07-18.diff.gz | patch -p1 || exit 1
@@ -114,7 +115,7 @@ cp -a README $PKG/usr/doc/xgames-$VERSION/xlander
# Build xminesweep:
cd $TMP
-tar xvf $CWD/xminesweep3.0.tar.gz || exit 1
+tar xvf $CWD/xminesweep3.0.tar.lz || exit 1
cd xminesweep3.0 || exit 1
xmkmf
make $NUMJOBS || make || exit 1
@@ -125,7 +126,7 @@ cp -a README $PKG/usr/doc/xgames-$VERSION/xminesweep
# Build xneko:
cd $TMP
-tar xvf $CWD/xneko.tar.gz || exit 1
+tar xvf $CWD/xneko.tar.lz || exit 1
cd xneko || exit 1
xmkmf
make $NUMJOBS || make || exit 1
@@ -136,7 +137,7 @@ cp -a README $PKG/usr/doc/xgames-$VERSION/xneko
# Build xroach:
cd $TMP
-tar xvf $CWD/xroach.tar.gz || exit 1
+tar xvf $CWD/xroach.tar.lz || exit 1
cd xroach || exit 1
xmkmf
make $NUMJOBS || make || exit 1
@@ -145,24 +146,13 @@ cat xroach.man | gzip -9c > $PKG/usr/man/man6/xroach.6.gz
mkdir -p $PKG/usr/doc/xgames-$VERSION/xroach
cp -a README.linux $PKG/usr/doc/xgames-$VERSION/xroach
-# Build xsnow:
-cd $TMP
-tar xvf $CWD/xsnow-1.42.tar.gz || exit 1
-cd xsnow-1.42 || exit 1
-xmkmf
-make $NUMJOBS || make || exit 1
-cat xsnow > $PKG/usr/bin/xsnow
-cat xsnow.man | gzip -9c > $PKG/usr/man/man6/xsnow.6.gz
-mkdir -p $PKG/usr/doc/xgames-$VERSION/xsnow
-cp -a README $PKG/usr/doc/xgames-$VERSION/xsnow
-
# Fix everything up:
chmod 755 $PKG/usr/bin/*
strip $PKG/usr/bin/*
( cd $PKG/usr/doc
- find . -type f -exec chown root.root {} \+
- find . -type f -exec chmod 644 {} \+
+ find . -type f -exec chown root.root {} \;
+ find . -type f -exec chmod 644 {} \;
)
mkdir -p $PKG/install
@@ -170,4 +160,3 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/xgames-$VERSION-$ARCH-$BUILD.txz
-