summaryrefslogtreecommitdiff
path: root/community-staging/torcs/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-staging/torcs/PKGBUILD')
-rw-r--r--community-staging/torcs/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community-staging/torcs/PKGBUILD b/community-staging/torcs/PKGBUILD
new file mode 100644
index 000000000..e24b071bc
--- /dev/null
+++ b/community-staging/torcs/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 62516 2012-01-20 09:52:55Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Shahar Weiss <sweiss4@gmx.net>
+
+pkgname=torcs
+pkgver=1.3.2_test2
+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' 'torcs-data'
+ 'libvorbis')
+makedepends=('plib')
+options=('!makeflags')
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${pkgver/_/-}.tar.bz2
+ torcs.desktop
+ torcs-gcc.patch)
+md5sums=('7851c1149587451bd64a6a55d785af40'
+ '328e419e9f985c3e7b69924fe299330d'
+ '5ae7e903df37300d3b8744328c756bff')
+
+build() {
+ cd $srcdir/$pkgname-${pkgver/_/-}
+ unset LDFLAGS
+ ./configure --prefix=/usr --x-includes=/usr/include --x-libraries=/usr/lib
+ make
+}
+
+package() {
+ 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 {} \;
+}