PKGBUILDs/community/miniracer/PKGBUILD

27 lines
785 B
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
# Original Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
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
}