updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / miniracer / PKGBUILD
blob80bb1977faa94704d67abee227049a6e1c53eb1f
1 # Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
5 pkgname=miniracer
6 pkgver=1.04
7 pkgrel=7
8 pkgdesc="An OpenGL car racing game, based on ID's famous Quake engine"
9 arch=('i686' 'x86_64')
10 url="http://miniracer.sourceforge.net"
11 license=('GPL2')
12 depends=('sdl_mixer' 'libgl')
13 source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
14 md5sums=('9078a3820bda65fac66e8cfc8270c102')
16 build() {
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
22         fi
23         make || return 1
26 package() {
27         cd ${srcdir}/${pkgname}-${pkgver}
29         make DESTDIR=${pkgdir} install