mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
|
# Contributor: Shahar Weiss <sweiss4@gmx.net>
|
|
|
|
pkgname=torcs
|
|
pkgver=1.3.1
|
|
pkgrel=2
|
|
pkgdesc="A 3D racing cars simulator using OpenGL"
|
|
url="http://torcs.sourceforge.net"
|
|
license=("GPL")
|
|
arch=('i686' 'x86_64')
|
|
depends=('freeglut' 'libpng' 'freealut' 'libxi' 'libxmu' 'libxrandr')
|
|
makedepends=('plib')
|
|
options=('!makeflags')
|
|
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 \
|
|
torcs.desktop \
|
|
torcs.sh \
|
|
torcs-gcc.patch)
|
|
md5sums=('f3efd94fb52e9963e176bf441cdab7b3'
|
|
'328e419e9f985c3e7b69924fe299330d'
|
|
'3f2a94755b86d4c2d1eda420d9b5606b'
|
|
'5ae7e903df37300d3b8744328c756bff')
|
|
|
|
build() {
|
|
cd $startdir/src/$pkgname-$pkgver
|
|
|
|
# (cd src && patch -p1 <../../torcs-gcc.patch)
|
|
|
|
./configure --prefix=/opt/torcs --x-includes=/usr/include --x-libraries=/usr/lib
|
|
make || return 1
|
|
make DESTDIR=$startdir/pkg install datainstall || return 1
|
|
|
|
install -D -m644 Ticon.png $startdir/pkg/usr/share/pixmaps/torcs.png && \
|
|
install -D -m644 ../torcs.desktop $startdir/pkg/usr/share/applications/torcs.desktop && \
|
|
install -D -m755 ../torcs.sh $startdir/pkg/etc/profile.d/torcs.sh || return 1
|
|
|
|
find ${startdir}/pkg -type d -exec chmod 755 {} \;
|
|
}
|