From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- games/nibbles/nibbles-1.2-compile.patch.bz2 | Bin 0 -> 888 bytes games/nibbles/nibbles.SlackBuild | 72 ++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 games/nibbles/nibbles-1.2-compile.patch.bz2 create mode 100755 games/nibbles/nibbles.SlackBuild (limited to 'games/nibbles') diff --git a/games/nibbles/nibbles-1.2-compile.patch.bz2 b/games/nibbles/nibbles-1.2-compile.patch.bz2 new file mode 100644 index 0000000..46ec0ba Binary files /dev/null and b/games/nibbles/nibbles-1.2-compile.patch.bz2 differ diff --git a/games/nibbles/nibbles.SlackBuild b/games/nibbles/nibbles.SlackBuild new file mode 100755 index 0000000..deafd02 --- /dev/null +++ b/games/nibbles/nibbles.SlackBuild @@ -0,0 +1,72 @@ +#!/bin/sh + +CWD=`pwd` +NAME=nibbles +VERSION=1.2 +ARCH=i586 +BUILD=1 +PKGNAME=$NAME +PKGVER=$VERSION +BASEDIR=$PKGNAME-$PKGVER +ARCHIVE=$BASEDIR.tar.bz2 +REPOSITORY=http:// +FLAGS="-O2 -march=pentium -mcpu=pentium -fno-strength-reduce \ + -fomit-frame-pointer -ffast-math" +PKG=/tmp/package-$NAME + +rm -rf $PKG +mkdir -p $PKG + +# Obtain sources +if [ ! -e $ARCHIVE ]; then + if `wget "$REPOSITORY/$ARCHIVE"`; then + true + else + exit 1 + fi +fi + +# Compile +cd /tmp +tar jxvf $CWD/$ARCHIVE +cd $BASEDIR +bzcat $CWD/$NAME-$VERSION-compile.patch.bz2 | patch -p1 -s +make COPTS="$FLAGS" + +# Install +mkdir -p $PKG/install $PKG/usr/games $PKG/usr/man/man6 +cat > $PKG/install/slack-desc < /tmp/$NAME-$VERSION-$ARCH-$BUILD.txt +makepkg -l y -c n /tmp/$NAME-$VERSION-$ARCH-$BUILD.tgz -- cgit v1.2.3-70-g09d2