summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 80bb1977faa94704d67abee227049a6e1c53eb1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
# Contributor: 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
}

package() {
	cd ${srcdir}/${pkgname}-${pkgver}

	make DESTDIR=${pkgdir} install
}