1 # Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
8 pkgdesc="An OpenGL car racing game, based on ID's famous Quake engine"
10 url="http://miniracer.sourceforge.net"
12 depends=('sdl_mixer' 'libgl')
13 source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
14 md5sums=('9078a3820bda65fac66e8cfc8270c102')
17 cd ${srcdir}/${pkgname}-${pkgver}
18 sed -i 's|-march=i486||g' Makefile
19 if [ $CARCH = "x86_64" ]; then
20 sed -i 's|ecx|rcx|g' misc/mathlib.c
21 sed -i 's|eax|rax|g' misc/mathlib.c
27 cd ${srcdir}/${pkgname}-${pkgver}
29 make DESTDIR=${pkgdir} install