summaryrefslogtreecommitdiff
path: root/community/speed-dreams
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/speed-dreams
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/speed-dreams')
-rw-r--r--community/speed-dreams/PKGBUILD43
-rw-r--r--community/speed-dreams/speed-dreams.desktop9
-rw-r--r--community/speed-dreams/speed-dreams.sh3
3 files changed, 55 insertions, 0 deletions
diff --git a/community/speed-dreams/PKGBUILD b/community/speed-dreams/PKGBUILD
new file mode 100644
index 000000000..e5c547b4e
--- /dev/null
+++ b/community/speed-dreams/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 39442 2011-02-10 06:52:04Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Adrián Chaves Fernández, aka Gallaecio <adriyetichaves@gmail.com>
+# Contributor: Shahar Weiss <sweiss4@gmx.net> (build() code from his TORCS' PKGBUILD)
+pkgname=speed-dreams
+pkgver=1.4.0
+pkgver2=1.4.0-r2307 # For managing files and directories
+pkgrel=3
+pkgdesc="A racing simulator with rich graphics and physics"
+arch=('i686' 'x86_64')
+url="http://speed-dreams.sourceforge.net/"
+license=('GPL2')
+depends=('freealut' 'freeglut' 'libpng' 'libxi' 'libxmu' 'libxrandr' 'plib>=1.8.3' 'libjpeg' 'zlib' 'enet' 'speed-dreams-data')
+source=("http://sourceforge.net/projects/${pkgname}/files/1.4.0/${pkgname}-${pkgver2}-src.tar.bz2/download"
+ "${pkgname}.desktop"
+ "${pkgname}.sh")
+md5sums=('92c324c2c47a598dea9278d9a66c5b78'
+ 'f89654510f1b558054eb17e778f1af7f'
+ 'dcfd31797bacb6b3e9dc27ddb59d29c3')
+
+build() {
+ cd "$srcdir/${pkgname}-${pkgver}-src"
+
+ unset LDFLAGS MAKEFLAGS # How can a build system be this broken?
+
+ ./configure --prefix="/opt/${pkgname}" --x-includes=/usr/include --x-libraries=/usr/lib
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname}-${pkgver}-src"
+
+ make DESTDIR="${pkgdir}/" install datainstall
+
+ install -D -m644 "icon.png" "${pkgdir}/usr/share/pixmaps/speed-dreams.png" && \
+ install -D -m644 "../${pkgname}.desktop" "${pkgdir}/usr/share/applications/speed-dreams.desktop" && \
+ install -D -m755 "../${pkgname}.sh" "${pkgdir}/bin/${pkgname}"
+
+ find "${pkgdir}/" -type d -exec chmod 755 {} \;
+ rm -r $pkgdir/opt/${pkgname}/share
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/speed-dreams/speed-dreams.desktop b/community/speed-dreams/speed-dreams.desktop
new file mode 100644
index 000000000..fa39ed1e5
--- /dev/null
+++ b/community/speed-dreams/speed-dreams.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Speed Dreams
+Comment=The Open Racing Car Simulator Fork
+Exec=/opt/speed-dreams/bin/speed-dreams
+Icon=speed-dreams.png
+Terminal=false
+Type=Application
+Encoding=UTF-8
+Categories=Application;Game;
diff --git a/community/speed-dreams/speed-dreams.sh b/community/speed-dreams/speed-dreams.sh
new file mode 100644
index 000000000..fa6dde97a
--- /dev/null
+++ b/community/speed-dreams/speed-dreams.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd /opt/speed-dreams/bin
+./speed-dreams