updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tuxracer / PKGBUILD
blob0b6e536e2c7e8d16ea6acf5fc256ece3db6beaf0
1 pkgname=tuxracer
2 pkgver=0.61
3 pkgrel=8
4 pkgdesc="Take on the role of Tux as he races down steep, snow-covered mountains."
5 arch=('i686' 'x86_64')
6 url="http://tuxracer.sourceforge.net/"
7 license=('GPL')
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
13         $pkgname.desktop
14         $pkgname.png)
15 md5sums=('206e8197ceaf0f00b25d4e2b4156e563'
16          'aef877fee9e1a56483ff01fbdfb1e4b3'
17          'a96a26d6e22b91b5f3f3b0fb29cef589'
18          '9cab49d96fb17aff1ab67d755885242f'
19          'c23baf2f2bad6286b1d3c6e4b9bd457d'
20          'd62cbbea6264826ad10ee1991e05f62f')
22 build() {
23   cd $srcdir/$pkgname-$pkgver
24   patch -Np1 -i $srcdir/$pkgname-datadir.patch
25   patch -Np1 -i $srcdir/$pkgname-pasting.patch
26   
27   CFLAGS="$CFLAGS -DGLX_GLXEXT_LEGACY" \
28     ./configure --prefix=/usr --with-tcl-lib-name=tcl8.5 --with-tcl-header=tcl.h
29   make || return 1
30   make prefix=$pkgdir/usr install
31   
32   # install data
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