diff options
author | Bartłomiej Piotrowski | 2018-01-07 13:53:28 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski | 2018-01-07 13:53:28 +0100 |
commit | 989015835159bf519f0265b20a7d6c92f5ea017a (patch) | |
tree | 7e77ebc9d39b9e1caa21212102cbae768735e91b | |
download | aur-989015835159bf519f0265b20a7d6c92f5ea017a.tar.gz |
Import from official repositories
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | build-fix.patch | 12 | ||||
-rw-r--r-- | torcs.sh | 2 |
4 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5ab003cc3796 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,34 @@ +pkgbase = torcs + pkgdesc = A 3D racing cars simulator using OpenGL + pkgver = 1.3.7 + pkgrel = 1 + url = http://torcs.sourceforge.net + arch = x86_64 + license = GPL + makedepends = plib + makedepends = mesa + depends = freeglut + depends = libpng + depends = freealut + depends = libxi + depends = libxmu + depends = libxrandr + depends = libvorbis + depends = glu + options = !makeflags + source = http://downloads.sourceforge.net/sourceforge/torcs/torcs-1.3.7.tar.bz2 + source = build-fix.patch + md5sums = de314c3e421e8d7d4323d819c5010d23 + md5sums = e011b533142879b1a399ce1cdeb1772c + +pkgname = torcs + depends = freeglut + depends = libpng + depends = freealut + depends = libxi + depends = libxmu + depends = libxrandr + depends = libvorbis + depends = glu + depends = torcs-data=1.3.7 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c2ea4ebba08a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Shahar Weiss <sweiss4@gmx.net> + +pkgname=torcs +pkgver=1.3.7 +pkgrel=1 +pkgdesc="A 3D racing cars simulator using OpenGL" +url="http://torcs.sourceforge.net" +license=("GPL") +arch=('x86_64') +depends=('freeglut' 'libpng' 'freealut' 'libxi' 'libxmu' 'libxrandr' 'libvorbis' 'glu') +makedepends=('plib' 'mesa') +options=('!makeflags') +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${pkgver/_/-}.tar.bz2 + build-fix.patch) +md5sums=('de314c3e421e8d7d4323d819c5010d23' + 'e011b533142879b1a399ce1cdeb1772c') + +prepare() { + cd "$srcdir"/$pkgname-${pkgver/_/-} + patch -p1 <"$srcdir"/build-fix.patch +} + +build() { + cd "$srcdir"/$pkgname-${pkgver/_/-} + unset LDFLAGS + ./configure --prefix=/usr --x-includes=/usr/include --x-libraries=/usr/lib + make +} + +package() { + depends=(${depends[@]} "torcs-data=$pkgver") + cd "$srcdir"/$pkgname-${pkgver/_/-} + make DESTDIR="$pkgdir" install + install -D -m644 Ticon.png "$pkgdir"/usr/share/pixmaps/torcs.png + install -D -m644 torcs.desktop "$pkgdir"/usr/share/applications/torcs.desktop + find "$pkgdir" -type d -exec chmod 755 {} \; +} diff --git a/build-fix.patch b/build-fix.patch new file mode 100644 index 000000000000..07be902a380c --- /dev/null +++ b/build-fix.patch @@ -0,0 +1,12 @@ +diff -wbBur torcs-1.3.7/src/drivers/olethros/geometry.cpp torcs-1.3.7.my/src/drivers/olethros/geometry.cpp +--- torcs-1.3.7/src/drivers/olethros/geometry.cpp 2006-01-06 18:22:29.000000000 +0300 ++++ torcs-1.3.7.my/src/drivers/olethros/geometry.cpp 2016-08-09 21:44:26.976853102 +0300 +@@ -27,6 +27,8 @@ + #ifdef WIN32 + #include <float.h> + #define isnan _isnan ++#else ++#define isnan std::isnan + #endif + + diff --git a/torcs.sh b/torcs.sh new file mode 100644 index 000000000000..0f1b4fe8da98 --- /dev/null +++ b/torcs.sh @@ -0,0 +1,2 @@ +#!/bin/bash +export PATH=$PATH:/opt/torcs/bin |