games/foobillard: Updated for version 3.0a

This commit is contained in:
nobody 2010-05-12 17:39:15 +02:00 committed by Robby Workman
parent 50ae138b87
commit 7901b22b27
5 changed files with 40 additions and 37 deletions

View file

@ -1,3 +1,4 @@
if [ -x usr/bin/update-desktop-database ]; then if [ -x /usr/bin/update-desktop-database ]; then
./usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1 /usr/bin/update-desktop-database -q usr/share/applications
fi fi

View file

@ -2,7 +2,7 @@
# Slackware build script for FooBillard # Slackware build script for FooBillard
# Copyright 2007 Frank Caraballo <fecaraballo[AT]gmail.com> # Copyright 2007, 2008 Frank Caraballo <fecaraballo{at}gmail{dot}com>
# 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
@ -23,31 +23,38 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=foobillard PRGNAM=foobillard
VERSION=3.0a VERSION=${VERSION:-3.0a}
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-2} BUILD=${BUILD:-3}
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
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
PDOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README README.FONTS TODO"
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi fi
set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1 cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar -xvf $CWD/$PRGNAM-$VERSION.tar.* || exit 1 tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION || exit 1 cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-s . find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
@ -55,33 +62,27 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \ --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
|| exit 1 --build=$ARCH-slackware-linux
make || exit 1 make
make install-strip DESTDIR=$PKG || exit 1 make install-strip DESTDIR=$PKG
# Add missed man page: # Add missed man page:
mkdir -p $PKG/usr/man/man6 install -D -m 0644 foobillard.6 $PKG/usr/man/man6/foobillard.6
cp -a $PRGNAM.6 $PKG/usr/man/man6 gzip -9 $PKG/usr/man/man6/foobillard.6
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $PDOCS $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README* TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/usr/share/{applications,pixmaps}
cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
cat $CWD/slack-desc > $PKG/install/slack-desc
mkdir -p $PKG/usr/share/pixmaps
cat $CWD/$PRGNAM.xpm > $PKG/usr/share/pixmaps/$PRGNAM.xpm cat $CWD/$PRGNAM.xpm > $PKG/usr/share/pixmaps/$PRGNAM.xpm
mkdir -p $PKG/usr/share/applications mkdir -p $PKG/install
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop cat $CWD/slack-desc > $PKG/install/slack-desc
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.tgz

View file

@ -3,6 +3,7 @@ Encoding=UTF-8
Name=FooBillard Name=FooBillard
GenericName=OpenGL-billard Game GenericName=OpenGL-billard Game
Exec=foobillard Exec=foobillard
TryExec=foobillard
Terminal=false Terminal=false
Type=Application Type=Application
Categories=Application;Game;ActionGame Categories=Application;Game;ActionGame

View file

@ -3,6 +3,6 @@ VERSION="3.0a"
HOMEPAGE="http://foobillard.sunsite.dk/" HOMEPAGE="http://foobillard.sunsite.dk/"
DOWNLOAD="http://foobillard.sunsite.dk/dnl/foobillard-3.0a.tar.gz" DOWNLOAD="http://foobillard.sunsite.dk/dnl/foobillard-3.0a.tar.gz"
MD5SUM="c2d92edeaaf8bfb18aa26f1c79931b7d" MD5SUM="c2d92edeaaf8bfb18aa26f1c79931b7d"
MAINTAINER="Frank Caraballo" MAINTAINER="nobody"
EMAIL="fecaraballo[AT]gmail.com" EMAIL="nobody@nowhere"
APPROVED="BP{k}" APPROVED="rworkman"

View file

@ -1,9 +1,9 @@
# HOW TO EDIT THIS FILE: # HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line # The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|' # up the first '|' above the ':' following the base package name, and the '|' on
# on the right side marks the last column you can put a character in. You must # the right side marks the last column you can put a character in. You must make
# make exactly 11 lines for the formatting to be correct. It's also # exactly 11 lines for the formatting to be correct. It's also customary to
# customary to leave one space after the ':'. # leave one space after the ':'.
|-----handy-ruler------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
foobillard: FooBillard (OpenGL-billard Game) foobillard: FooBillard (OpenGL-billard Game)