4 pkgdesc="Take on the role of Tux as he races down steep, snow-covered mountains."
6 url="http://tuxracer.sourceforge.net/"
8 depends=('sdl' 'sdl_mixer' 'tcl>=8.5.0' 'glibc' 'audiofile' 'libogg' 'libvorbis' 'libxi' 'libxmu' 'mesa' 'libgl')
9 source=(http://downloads.sourceforge.net/tuxracer/$pkgname-$pkgver.tar.gz
10 http://downloads.sourceforge.net/tuxracer/tuxracer-data-0.61.tar.gz
11 $pkgname-datadir.patch
12 $pkgname-pasting.patch
15 md5sums=('206e8197ceaf0f00b25d4e2b4156e563'
16 'aef877fee9e1a56483ff01fbdfb1e4b3'
17 'a96a26d6e22b91b5f3f3b0fb29cef589'
18 '9cab49d96fb17aff1ab67d755885242f'
19 'c23baf2f2bad6286b1d3c6e4b9bd457d'
20 'd62cbbea6264826ad10ee1991e05f62f')
23 cd $srcdir/$pkgname-$pkgver
24 patch -Np1 -i $srcdir/$pkgname-datadir.patch
25 patch -Np1 -i $srcdir/$pkgname-pasting.patch
27 CFLAGS="$CFLAGS -DGLX_GLXEXT_LEGACY" \
28 ./configure --prefix=/usr --with-tcl-lib-name=tcl8.5 --with-tcl-header=tcl.h
30 make prefix=$pkgdir/usr install
33 install -dm755 $pkgdir/usr/share/tuxracer
34 mv $srcdir/$pkgname-data-$pkgver/* $pkgdir/usr/share/tuxracer
35 find $pkgdir/usr/share/tuxracer -type f -exec chmod 644 {} \;
36 find $pkgdir/usr/share/tuxracer -type d -exec chmod 755 {} \;
38 # install .desktop file and icon
39 install -dm755 $pkgdir/usr/share/{applications,pixmaps}
40 install -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications
41 install -m644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps