summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 11 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1370a96acc6..cd96da3d6cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,29 @@
# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $
-# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Jose Riha <jose1711 gmail com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Shahar Weiss <sweiss4@gmx.net>
pkgname=torcs
pkgver=1.3.7
-pkgrel=2
+pkgrel=3
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')
+arch=('x86_64' 'i686')
+depends=('freeglut' 'libpng' 'freealut' 'libxi' 'libxmu' 'libxrandr' 'libvorbis' 'glu' "torcs-data=$pkgver")
makedepends=('plib' 'mesa')
options=('!makeflags')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${pkgver/_/-}.tar.bz2
- build-fix.patch)
+ gcc7.patch
+ gcc6-isnan.patch)
md5sums=('de314c3e421e8d7d4323d819c5010d23'
- 'e011b533142879b1a399ce1cdeb1772c')
+ '64216e9dba6cc030c38cde8efea3e59d'
+ 'e84edaa1660f55fd980136f70e6471e6')
prepare() {
cd "$srcdir"/$pkgname-${pkgver/_/-}
- patch -p1 <"$srcdir"/build-fix.patch
+ patch -p1 <"$srcdir"/gcc7.patch
+ patch -p1 <"$srcdir"/gcc6-isnan.patch
}
build() {
@@ -30,10 +34,8 @@ build() {
}
package() {
- depends=(${depends[@]} "torcs-data=$pkgver")
cd "$srcdir"/$pkgname-${pkgver/_/-}
make DESTDIR="$pkgdir" install
- make DESTDIR="$pkgdir" datainstall
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 {} \;