From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/torcs/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 community/torcs/PKGBUILD (limited to 'community/torcs/PKGBUILD') diff --git a/community/torcs/PKGBUILD b/community/torcs/PKGBUILD new file mode 100644 index 000000000..99a01a51a --- /dev/null +++ b/community/torcs/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 32627 2010-11-15 22:59:24Z lcarlier $ +# Maintainer: Sergej Pupykin +# Contributor: Shahar Weiss + +pkgname=torcs +pkgver=1.3.2_test1 +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') +makedepends=('plib') +options=('!makeflags') +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${pkgver/_/-}.tar.bz2 \ + torcs.desktop \ + torcs-gcc.patch) +md5sums=('978b908a42ff6bc235a791bba3fa66b9' + '328e419e9f985c3e7b69924fe299330d' + '5ae7e903df37300d3b8744328c756bff') + +build() { + cd $srcdir/$pkgname-${pkgver/_/-} + + export LDFLAGS=${LDFLAGS/-Wl,--as-needed/} + ./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 {} \; +} -- cgit v1.2.3-54-g00ecf