academic/tuxmath: Updated for version 1.9.0.

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Larry Hajali 2011-02-20 13:56:56 -03:00 committed by Niels Horn
parent 63dd3ff986
commit b32a8f308c
4 changed files with 26 additions and 18 deletions

View file

@ -1,6 +1,7 @@
"Tux, of Math Command" (aka. tuxmath) is a math drill game starring Tux, the "Tux, of Math Command" (aka. tuxmath) is a math drill game starring Tux,
Linux Penguin. Lessons are included from simple number typing through addition, the Linux Penguin. Lessons are included from simple number typing through
subtraction, multiplication, and division of positive and negative numbers. addition, subtraction, multiplication, and division of positive and
negative numbers.
It is intended for kids ~4-10. It is intended for kids ~4-10.
Tuxmath requires SDL_Pango. Tuxmath requires SDL_Pango and t4k_common.

View file

@ -2,3 +2,8 @@ if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi 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

@ -5,16 +5,14 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com> # Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=tuxmath PRGNAM=tuxmath
VERSION=${VERSION:-1.7.2} VERSION=${VERSION:-1.9.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -48,17 +46,16 @@ find . \
-exec chmod 644 {} \; -exec chmod 644 {} \;
# Fix .desktop. # Fix .desktop.
sed -i '/^##/d' $PRGNAM.desktop sed -i -e '/^##/d' -e '/^X/d' -e 's|Math;||' $PRGNAM.desktop
# Hmmmm...SDL_pango is an optional requirement with SDL_ttf as the fallback.
# However, I can't get tuxmath to build without SDL_pango even by passing
# --without-sdlpango option to configure. Oh well!!! :/
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--localstatedir=/var \
--docdir=/usr/doc/$PRGNAM-$VERSION \ --docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-sdltest \ --disable-sdltest \
--disable-dependency-tracking \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make
@ -67,9 +64,14 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/share/{applications,pixmaps} install -D -m 0644 $PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
install -m 0644 $PRGNAM.desktop $PKG/usr/share/applications for i in 16 24 32 48 64 96 128; do
install -m 0644 data/images/icons/$PRGNAM.svg $PKG/usr/share/pixmaps convert data/images/icons/$PRGNAM.svg -resize ${i}x${i}! $PRGNAM-$i.png
install -D -m 0644 $PRGNAM-$i.png \
$PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png
done
install -D -m 0644 data/images/icons/$PRGNAM.svg \
$PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,10 @@
PRGNAM="tuxmath" PRGNAM="tuxmath"
VERSION="1.7.2" VERSION="1.9.0"
HOMEPAGE="http://tux4kids.alioth.debian.org/" HOMEPAGE="http://tux4kids.alioth.debian.org/"
DOWNLOAD="http://downloads.sourceforge.net/project/tuxmath/tuxmath-source/TuxMath%201.7.2%20-%20Source/tuxmath_w_fonts-1.7.2.tar.gz" DOWNLOAD="http://alioth.debian.org/frs/download.php/3470/tuxmath_w_fonts-1.9.0.tar.gz"
MD5SUM="8617c4eb3dcc203da02c150c7463327d" MD5SUM="572ee65edda5e0a6696c76ca27891526"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Larry Hajali" MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com" EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="rworkman" APPROVED="rworkman,Niels Horn"