mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
academic/tuxmath: Added to 13.0 repository
This commit is contained in:
parent
d88e3d82a2
commit
f334d6acba
5 changed files with 115 additions and 0 deletions
6
academic/tuxmath/README
Normal file
6
academic/tuxmath/README
Normal file
|
@ -0,0 +1,6 @@
|
|||
"Tux, of Math Command" (aka. tuxmath) is a math drill game starring Tux, the
|
||||
Linux Penguin. Lessons are included from simple number typing through addition,
|
||||
subtraction, multiplication, and division of positive and negative numbers.
|
||||
It is intended for kids ~4-10.
|
||||
|
||||
Tuxmath requires SDL_Pango.
|
4
academic/tuxmath/doinst.sh
Normal file
4
academic/tuxmath/doinst.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
19
academic/tuxmath/slack-desc
Normal file
19
academic/tuxmath/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# 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 '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
tuxmath: tuxmath (Tux of Math Command is a math game for kids)
|
||||
tuxmath:
|
||||
tuxmath: "Tux, of Math Command" is a math drill game starring Tux, the Linux
|
||||
tuxmath: Penguin. Lessons are included from simple number typing through
|
||||
tuxmath: addition, subtraction, multiplication, and division of positive and
|
||||
tuxmath: negative numbers. It is intended for kids ~4-10.
|
||||
tuxmath:
|
||||
tuxmath: Homepage: http://tux4kids.alioth.debian.org/
|
||||
tuxmath:
|
||||
tuxmath:
|
||||
tuxmath:
|
76
academic/tuxmath/tuxmath.SlackBuild
Normal file
76
academic/tuxmath/tuxmath.SlackBuild
Normal file
|
@ -0,0 +1,76 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for tuxmath
|
||||
|
||||
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||
|
||||
PRGNAM=tuxmath
|
||||
VERSION=${VERSION:-1.7.2}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf ${PRGNAM}_w_fonts-$VERSION
|
||||
tar xvf $CWD/${PRGNAM}_w_fonts-$VERSION.tar.gz
|
||||
cd ${PRGNAM}_w_fonts-$VERSION
|
||||
chown -R root:root .
|
||||
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 {} \;
|
||||
|
||||
# Fix .desktop.
|
||||
sed -i '/^##/d' $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" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--disable-sdltest \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/share/{applications,pixmaps}
|
||||
install -m 0644 $PRGNAM.desktop $PKG/usr/share/applications
|
||||
install -m 0644 data/images/icons/$PRGNAM.svg $PKG/usr/share/pixmaps
|
||||
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.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/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
10
academic/tuxmath/tuxmath.info
Normal file
10
academic/tuxmath/tuxmath.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="tuxmath"
|
||||
VERSION="1.7.2"
|
||||
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"
|
||||
MD5SUM="8617c4eb3dcc203da02c150c7463327d"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Larry Hajali"
|
||||
EMAIL="larryhaja[at]gmail[dot]com"
|
||||
APPROVED="rworkman"
|
Loading…
Reference in a new issue