games/pingus: Updated for version 0.7.2
This commit is contained in:
parent
26375ac6a5
commit
e1971b67de
|
@ -1,4 +1,4 @@
|
||||||
Pingus is a free Lemmings(tm) clone for GNU/Linux,
|
Pingus is a free Lemmings(tm) clone for GNU/Linux,
|
||||||
Win32 and other operating systems supported by SDL.
|
Win32 and other operating systems supported by SDL.
|
||||||
|
|
||||||
This requires boost, scons, and physfs.
|
This requires scons and physfs.
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
Index: pingus-0.7.2/src/input/evdev_device.cpp
|
||||||
|
===================================================================
|
||||||
|
--- pingus-0.7.2.orig/src/input/evdev_device.cpp
|
||||||
|
+++ pingus-0.7.2/src/input/evdev_device.cpp
|
||||||
|
@@ -25,6 +25,7 @@
|
||||||
|
#include <stdexcept>
|
||||||
|
#include <iostream>
|
||||||
|
#include <errno.h>
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
#include "evdev_device.hpp"
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for pingus
|
# Slackware build script for pingus
|
||||||
# Written by ppr:kut <hmwiesinger@gmx.at>
|
|
||||||
|
|
||||||
# Copyright 2007 Heinz Wiesinger
|
# Copyright 2007-2009 Heinz Wiesinger <pprkut@liwjatan.at>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -28,6 +27,7 @@ VERSION=0.7.2
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
@ -35,8 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
@ -50,6 +55,8 @@ cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
chmod -R u+w,go+r-w,a-s .
|
||||||
|
|
||||||
|
patch -p1 -i $CWD/pingus-0.7.2+gcc-4.3.patch
|
||||||
|
|
||||||
scons \
|
scons \
|
||||||
CCFLAGS="$SLKCFLAGS" \
|
CCFLAGS="$SLKCFLAGS" \
|
||||||
CPPFLAGS="$SLKCFLAGS" \
|
CPPFLAGS="$SLKCFLAGS" \
|
||||||
|
@ -61,11 +68,8 @@ install -p -m 0644 doc/pingus.6 $PKG/usr/man/man6/
|
||||||
install -m 0644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
|
install -m 0644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
|
||||||
install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/
|
install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/
|
||||||
|
|
||||||
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
( cd $PKG
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
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
|
|
||||||
)
|
|
||||||
|
|
||||||
( cd $PKG/usr/man
|
( cd $PKG/usr/man
|
||||||
find . -type f -exec gzip -9 {} \;
|
find . -type f -exec gzip -9 {} \;
|
||||||
|
@ -82,4 +86,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="pingus"
|
||||||
VERSION="0.7.2"
|
VERSION="0.7.2"
|
||||||
HOMEPAGE="http://pingus.seul.org"
|
HOMEPAGE="http://pingus.seul.org"
|
||||||
DOWNLOAD="http://pingus.seul.org/files/pingus-0.7.2.tar.bz2"
|
DOWNLOAD="http://pingus.seul.org/files/pingus-0.7.2.tar.bz2"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM="88756802d483f922d0910a14cd26a951"
|
MD5SUM="88756802d483f922d0910a14cd26a951"
|
||||||
MAINTAINER="ppr:kut"
|
MD5SUM_x86_64=""
|
||||||
EMAIL="HMWiesinger@gmx.at"
|
MAINTAINER="pprkut"
|
||||||
|
EMAIL="pprkut@liwjatan.at"
|
||||||
APPROVED="rworkman"
|
APPROVED="rworkman"
|
||||||
|
|
Loading…
Reference in New Issue