You are not logged in.
Here is a new version of TORCS (The Open Race Car Simulator) Enjoy!
PKGBUILD:
# Contributor: Logan Anteau <lanteaur@gmail.com> and Georg Grabler <ggrabler@gmail.com>
pkgname=torcs
pkgver=1.2.3
pkgrel=1
depends=('xorg' 'glut' 'bash')
pkgdesc="The Open Racing Car Simulator (TORCS) is a 3D racing car simulator using OpenGL"
url="http://torcs.sourceforge.net"
source=(http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-src.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-src-robots-base.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-src-robots-berniw.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-src-robots-olethros.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-src-robots-bt.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data-cars-Patwo-Design.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data-cars-VM.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data-cars-extra.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data-cars-kcendra-gt.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data-cars-kcendra-roadsters.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data-cars-kcendra-sport.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data-cars-nascar.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data-tracks-dirt.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data-tracks-oval.tgz
http://dl.sourceforge.net/sourceforge/torcs/TORCS-$pkgver-data-tracks-road.tgz)
md5sums=('cf03f0623eab7f9f7d6b13ac20660515'
'241552524488396fc5cca4ff8c943709'
'b092acfca04bd4708f9722fe0732ba75'
'653c522a007d01c9e8d8fc069651517b'
'425b9737f951f95e4255f81b60449f94'
'7e49902b503edb9245c95ffb682bc5c1'
'43af2098b788aa96556c8939048ac1b3'
'e81c9f15a8089b138113621e9e7013d1'
'df5706fd877d98cebf0d9977005304d4'
'4394bdbe9722cc8b962fea29dec9531d'
'96ff8279e7d77a40564122fa1a7a78b6'
'858c0e05e589c88264472a27c94f2a29'
'7d490c510914a0cdab5939cca66f37cb'
'3e574373fe582269f927b94b3d01ccfa'
'4b20ced6ffc65357ffddb31fbc561682'
'630e7e53ffcd84a46175a7627438ba2b'
'846a977e0a147de2560b23e740ebdecb'
'78dabde8e38aa618fcfa570a5835732e')
build() {
cd $startdir/src/$pkgname-$pkgver
# compile and install the sources
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
# move the tracks and cars to the installdir
cp -r $startdir/src/cars $startdir/pkg/usr/share/games/torcs
cp -r $startdir/src/categories $startdir/pkg/usr/share/games/torcs
cp -r $startdir/src/tracks $startdir/pkg/usr/share/games/torcs
cp -r $startdir/src/data $startdir/pkg/usr/share/games/torcs
cp -r $startdir/src/menu $startdir/pkg/usr/share/games/torcs
rm -rf $startdir/pkg/usr/share/games/torcs/results/
rm -rf $startdir/pkg/usr/share/games/torcs/drivers/human/tracks/spring/
chmod 755 $startdir/pkg/* -R
}
This is also in my repository thats in my signature.
[code]
[hostile]
Server = http://lanteau.homelinux.org/~lanteau/arch/hostile/
[/code]
PKGBUILDs available at http://lanteau.homelinux.org/~lanteau/arch/pkgbuilds/
Offline
you forgot plib as a dependancy.
Offline
I can play torcs fine without plib and namcap doesn't say plib is a dependency so...
[code]
[hostile]
Server = http://lanteau.homelinux.org/~lanteau/arch/hostile/
[/code]
PKGBUILDs available at http://lanteau.homelinux.org/~lanteau/arch/pkgbuilds/
Offline
The new TORCS version fixes the nasty bugs when simulating races. It's quite stable now, doesn't crash that often.
Nice work hostile, but ... actually, why do you have the last 3 md5sums after the build()? I wonder if namcap doesn't warn this, since the md5sums array is incomplete within this.
// STi
Ability is nothing without opportunity.
Offline
oooh sorry just a formatting problem, pasting that big of a PKGBUILD its easy to mess up the formatting. namcap probably would probably yell at me for that.
[code]
[hostile]
Server = http://lanteau.homelinux.org/~lanteau/arch/hostile/
[/code]
PKGBUILDs available at http://lanteau.homelinux.org/~lanteau/arch/pkgbuilds/
Offline
It's a different pkg, bur for the interested ... (the source-tarball is 10x MB ... I suppose it's better to make pkgbuild's for the separate packages). The tarball for this packages includes everything. I can't get fullscreen to work well, but maybe it is better to use freeglut or it is because I'm using enlightenment dr17?
# Contributor: Michel Brabants <michel.linux@tiscali.be>
pkgname=torcs
pkgver=1.2.4
pkgrel=1
pkgdesc="TORCS, The Open Racing Car Simulator, is a highly portable multi platform car racing simulation. It is used as ordinary car racing game, as AI racing game and as research platform."
url="http://torcs.sourceforge.net/"
license=""
#freeglut seems to be better in this case (for full-screen-support), meta-package for opengl/mesa?
depends=('plib>=1.8.3' 'glut>=3.7' 'libpng' 'zlib' 'openal')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://dl.sourceforge.net/sourceforge/torcs/$pkgname-$pkgver.tar.bz2)
md5sums=('f8727358323bd92537f10167bda4ee5f')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
make DESTDIR=$startdir/pkg datainstall
}
Offline
I don't know if this is the place to ask, but here's the question:
I tried installing torcs using qpkg - qpkg -p torcs - it downloads everything and starts building. In a while it exits with an error. Here the last of the output:
make[4]: Entering directory `/tmp/qpkg/src/torcs-1.2.4/src/modules/graphic'
make[5]: Entering directory `/tmp/qpkg/src/torcs-1.2.4/src/modules/graphic/ssggraph'
g++ -I/tmp/qpkg/src/torcs-1.2.4/export/include -I/tmp/qpkg/src/torcs-1.2.4 -Wall -fPIC -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -Wall -fPIC -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DHAVE_CONFIG_H -c grmain.cpp
grscreen.h:81: error: extra qualification 'cGrScreen::' on member 'camDraw'
make[5]: *** [grmain.o] Error 1
make[5]: Leaving directory `/tmp/qpkg/src/torcs-1.2.4/src/modules/graphic/ssggraph'
make[4]: *** [subdirs] Error 1
make[4]: Leaving directory `/tmp/qpkg/src/torcs-1.2.4/src/modules/graphic'
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/tmp/qpkg/src/torcs-1.2.4/src/modules'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/tmp/qpkg/src/torcs-1.2.4/src'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/tmp/qpkg/src/torcs-1.2.4'
make: *** [restart] Error 2
==> ERROR: Build Failed. Aborting...
I accept any suggestions.
............. .......... .........................
......................
Where is Pacman when you need him....
Offline