33 lines
942 B
Plaintext
33 lines
942 B
Plaintext
# Description: OpenGL-based racing game featuring Tux
|
|
# URL: http://tuxracer.sourceforge.net/
|
|
# Maintainer: Mark Rosenstand, mark at borkware dot net
|
|
# Depends on: mesa3d, sdl_mixer, tcl
|
|
|
|
name=tuxracer
|
|
version=0.61
|
|
release=1
|
|
source=(http://dl.sourceforge.net/tuxracer/tuxracer-$version.tar.gz
|
|
http://dl.sourceforge.net/tuxracer/tuxracer-data-$version.tar.gz
|
|
tuxracer-0.61-gcc30-fixes.patch
|
|
tuxracer-0.61-skip-glx.h-check.patch)
|
|
|
|
build() {
|
|
cd tuxracer-$version
|
|
patch -p1 -i ../tuxracer-0.61-gcc30-fixes.patch
|
|
patch -p1 -i ../tuxracer-0.61-skip-glx.h-check.patch
|
|
autoreconf -i
|
|
./configure \
|
|
--prefix=/usr \
|
|
--with-tcl-lib-name=tcl8.4 \
|
|
--with-data-dir=/usr/share/tuxracer
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
cd ..
|
|
rm tuxracer-data-$version/README
|
|
chmod -Rv a+r tuxracer-data-$version
|
|
mkdir -p $PKG/usr/share
|
|
cp -r tuxracer-data-$version $PKG/usr/share/tuxracer
|
|
find $PKG/usr/share/tuxracer -type d -exec chmod -v g-s {} \;
|
|
}
|