games/pingus: Updated for version 0.7.2

This commit is contained in:
Heinz Wiesinger 2010-05-13 00:26:53 +02:00 committed by Robby Workman
parent 26375ac6a5
commit e1971b67de
4 changed files with 29 additions and 11 deletions

View file

@ -1,4 +1,4 @@
Pingus is a free Lemmings(tm) clone for GNU/Linux,
Win32 and other operating systems supported by SDL.
This requires boost, scons, and physfs.
This requires scons and physfs.

View file

@ -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"

View file

@ -1,9 +1,8 @@
#!/bin/sh
# 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.
#
# Redistribution and use of this script, with or without modification, is
@ -28,6 +27,7 @@ VERSION=0.7.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@ -35,8 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -50,6 +55,8 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
patch -p1 -i $CWD/pingus-0.7.2+gcc-4.3.patch
scons \
CCFLAGS="$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.desktop $PKG/usr/share/applications/
( 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 -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man
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
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}

View file

@ -2,7 +2,9 @@ PRGNAM="pingus"
VERSION="0.7.2"
HOMEPAGE="http://pingus.seul.org"
DOWNLOAD="http://pingus.seul.org/files/pingus-0.7.2.tar.bz2"
DOWNLOAD_x86_64=""
MD5SUM="88756802d483f922d0910a14cd26a951"
MAINTAINER="ppr:kut"
EMAIL="HMWiesinger@gmx.at"
MD5SUM_x86_64=""
MAINTAINER="pprkut"
EMAIL="pprkut@liwjatan.at"
APPROVED="rworkman"