# Contributor: Angelo Theodorou # Original Maintainer: Giovanni Scafora # Maintainer: Daniel J Griffiths pkgname=miniracer pkgver=1.04 pkgrel=7 pkgdesc="An OpenGL car racing game, based on ID's famous Quake engine" arch=('i686' 'x86_64') url="http://miniracer.sourceforge.net" license=('GPL2') depends=('sdl_mixer' 'libgl') source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz) md5sums=('9078a3820bda65fac66e8cfc8270c102') build() { cd $srcdir/$pkgname-$pkgver sed -i 's|-march=i486||g' Makefile if [ $CARCH = "x86_64" ]; then sed -i 's|ecx|rcx|g' misc/mathlib.c sed -i 's|eax|rax|g' misc/mathlib.c fi make || return 1 make DESTDIR=$pkgdir install }