games/pysolfc: Updated for version 2.0.

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
Matthew Fillpot 2010-07-02 23:29:45 -05:00 committed by Erik Hanson
parent 85fb475c0e
commit bc032a906a
6 changed files with 22 additions and 4452 deletions

View File

@ -8,4 +8,4 @@ time. If you do not want to install the extra cardsets systemwide, or
decide to add them later, they can be extracted to ~/.PySolFC/cardsets
The extra cardsets tarball is available here:
http://downloads.sourceforge.net/pysolfc/PySolFC-Cardsets-1.1.tar.bz2
http://downloads.sourceforge.net/pysolfc/PySolFC-Cardsets-2.0.tar.bz2

14
games/pysolfc/doinst.sh Normal file
View File

@ -0,0 +1,14 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View File

@ -24,18 +24,16 @@
PRGNAM=PySolFC
PKGNAM=pysolfc
VERSION=${VERSION:-1.1}
BUILD=${BUILD:-2}
VERSION=${VERSION:-2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CARDSETS=$PRGNAM-Cardsets-$VERSION
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@ -60,18 +58,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
## Upstream left a file out of the tarball:
## http://sourceforge.net/forum/forum.php?thread_id=1847958&forum_id=503709
cp $CWD/pysolfc.glade data
python setup.py install --root $PKG
mkdir -p $PKG/usr/man/man6
cat docs/pysol.6 > $PKG/usr/man/man6/pysol.6 ; gzip $PKG/usr/man/man6/pysol.6
mkdir -p $PKG/usr/share/applications
cat $CWD/$PKGNAM.desktop > $PKG/usr/share/applications/$PKGNAM.desktop
## Are we installing extra cardsets?
if [ -e $CWD/$CARDSETS.tar.bz2 ]; then
echo -e "Extracting extra cardsets (this may take some time)..."
@ -86,6 +77,7 @@ cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild
mkdir -p $PKG/install
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/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -1,9 +0,0 @@
[Desktop Entry]
Name=PySolFC
Exec=pysol.py
Icon=pysol
GenericName=Solitaire Suite
Comment=Suite of over 1000 Solitaire games
Terminal=false
Type=Application
Categories=Game;CardGame;

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
PRGNAM="pysolfc"
VERSION="1.1"
VERSION="2.0"
HOMEPAGE="http://pysolfc.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/pysolfc/PySolFC-1.1.tar.bz2"
MD5SUM="56aca8101b3534aaf3564c40ed6824f1"
DOWNLOAD="http://downloads.sourceforge.net/pysolfc/PySolFC-2.0.tar.bz2"
MD5SUM="f9ee647947924efdf1d24af179d3cc0a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Matthew Fillpot"
EMAIL="mfilpot@gmail.com"
APPROVED="rworkman"
APPROVED="Erik Hanson"