mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
26 lines
785 B
Bash
26 lines
785 B
Bash
# 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
|
|
}
|
|
|