aboutsummaryrefslogtreecommitdiff
path: root/games/nSnake
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-07-15 23:14:35 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-16 18:26:49 +0700
commit3e0293eede10c04bf8a68bede2a2098ef4f5daae (patch)
tree680bf5cc5d3cfa0f01757cccd823005aa090f927 /games/nSnake
parentda38baeaa5714931f5ab2da681674b06ffc9b1d7 (diff)
games/nSnake: Updated for version 2.0.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/nSnake')
-rw-r--r--games/nSnake/Makefile.patch37
-rw-r--r--games/nSnake/nSnake.SlackBuild18
-rw-r--r--games/nSnake/nSnake.info8
3 files changed, 16 insertions, 47 deletions
diff --git a/games/nSnake/Makefile.patch b/games/nSnake/Makefile.patch
deleted file mode 100644
index fd2a3e51e2073..0000000000000
--- a/games/nSnake/Makefile.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- nSnake-2.0.0/Makefile.original 2014-04-20 10:32:07.056427339 +0300
-+++ nSnake-2.0.0/Makefile 2014-04-20 17:48:36.912009088 +0300
-@@ -48,15 +48,15 @@
- PREFIX = $(DESTDIR)/usr
-
- EXEC_PREFIX = $(PREFIX)
--DATAROOTDIR = $(PREFIX)/share
--MANROOT = $(DATAROOTDIR)/man
-+DATAROOTDIR = $(PREFIX)/share/games
-+MANROOT = $(PREFIX)/man
-
- MANNUMBER = 6
-
--BINDIR = $(EXEC_PREFIX)/games
-+BINDIR = $(EXEC_PREFIX)/bin
- MANDIR = $(MANROOT)/man$(MANNUMBER)
-
--MANFILE = $(PACKAGE).$(MANNUMBER)
-+# MANFILE = $(PACKAGE).$(MANNUMBER)
- MANPAGE = doc/man/$(MANFILE)
-
- # Build info
-@@ -121,10 +121,10 @@
- # Installing...
- $(MUTE)install -d -m 755 $(BINDIR)
- $(MUTE)install -m 755 bin/$(EXE) $(BINDIR)
-- -$(MUTE)cat $(MANPAGE) | sed -e "s|DATE|$(DATE)|g" -e "s|VERSION|$(VERSION)|g" >$(MANFILE)
-- $(MUTE)install -d $(MANDIR)
-- $(MUTE)install $(MANFILE) $(MANDIR)
-- $(MUTE)rm -f $(MANFILE)
-+ # -$(MUTE)cat $(MANPAGE) | sed -e "s|DATE|$(DATE)|g" -e "s|VERSION|$(VERSION)|g" > $(MANFILE)
-+ # $(MUTE)install -d $(MANDIR)
-+ # $(MUTE)install $(MANFILE) $(MANDIR)
-+ # $(MUTE)rm -f $(MANFILE)
- # $(PACKAGE) successfuly installed!
-
- uninstall:
diff --git a/games/nSnake/nSnake.SlackBuild b/games/nSnake/nSnake.SlackBuild
index 7642bf798d8ed..09d7d60d5e1cd 100644
--- a/games/nSnake/nSnake.SlackBuild
+++ b/games/nSnake/nSnake.SlackBuild
@@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nSnake
-VERSION=${VERSION:-2.0.0}
+SRCNAM=${PRGNAM,,}
+VERSION=${VERSION:-2.0.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,9 +60,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,14 +70,19 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-patch -p1 < $CWD/Makefile.patch
-
make
make install PREFIX=$PKG/usr
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+mkdir -p $PKG/usr/man
+mv $PKG/usr/share/man/man6 $PKG/usr/man
+rm -rf $PKG/usr/share/man
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS BUGS COPYING ChangeLog NEWS README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/games/nSnake/nSnake.info b/games/nSnake/nSnake.info
index d7e0df8849b55..e41907158ad00 100644
--- a/games/nSnake/nSnake.info
+++ b/games/nSnake/nSnake.info
@@ -1,10 +1,10 @@
PRGNAM="nSnake"
-VERSION="2.0.0"
+VERSION="2.0.7"
HOMEPAGE="http://alexdantas.net/projects/nsnake"
-DOWNLOAD="https://github.com/alexdantas/nSnake/archive/v2.0.0.tar.gz"
-MD5SUM="f3fd657ce4532d16fd82906356d35831"
+DOWNLOAD="http://sourceforge.net/projects/nsnake/files/GNU-Linux/nsnake-2.0.7.tar.gz"
+MD5SUM="1022035f0809ec14fca7518f41c54ed4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="yaml-cpp"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"