summaryrefslogtreecommitdiff
path: root/community-testing/speed-dreams/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/speed-dreams/PKGBUILD')
-rw-r--r--community-testing/speed-dreams/PKGBUILD24
1 files changed, 15 insertions, 9 deletions
diff --git a/community-testing/speed-dreams/PKGBUILD b/community-testing/speed-dreams/PKGBUILD
index 757a901fe..db818e3be 100644
--- a/community-testing/speed-dreams/PKGBUILD
+++ b/community-testing/speed-dreams/PKGBUILD
@@ -1,21 +1,22 @@
-# $Id: PKGBUILD 54504 2011-08-19 10:27:23Z svenstaro $
+# $Id: PKGBUILD 63286 2012-01-30 19:08:35Z ibiru $
# 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=2.0.0a3
-_pkgver=2.0.0-a3-r3412
-pkgrel=1
+pkgver=2.0.0b1
+_pkgver=2.0.0-b1-r3937
+pkgrel=2
pkgdesc="A racing simulator with rich graphics and physics"
arch=('i686' 'x86_64')
url="http://speed-dreams.sourceforge.net/"
license=('GPL2')
depends=('sdl' 'freealut' 'freeglut' 'libpng' 'libxi' 'libxmu' 'libxrandr' 'plib>=1.8.3' 'libjpeg' 'zlib' 'enet' 'speed-dreams-data')
makedepends=('cmake' 'p7zip')
+noextract=(${pkgname}-${_pkgver}-src.tar.7z)
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${_pkgver}-src.tar.7z"
"${pkgname}.desktop")
-md5sums=('659837e8866c59c85279c31fcaba4144'
- 'bd5c81bac696ec53628ba42684ef8369')
+md5sums=('5299fe23aec3641827039ae3c69de460'
+ '6b45e9c40984ebb79a1dfaddbfabde92')
build() {
7z x ${pkgname}-${_pkgver}-src.tar.7z
@@ -28,7 +29,8 @@ build() {
-DCMAKE_INSTALL_PREFIX=/usr \
-DSD_BINDIR=/usr/bin \
-DSD_DATADIR=/usr/share/speed-dreams-2 \
- -DSD_LIBDIR=/usr/lib/speed-dreams-2
+ -DSD_LIBDIR=/usr/lib/speed-dreams-2 \
+ -DOPTION_OFFICIAL_ONLY:BOOL=ON
make
}
@@ -45,11 +47,15 @@ package() {
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/speed-dreams.desktop"
mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
- cp -r doc "${pkgdir}/usr/share/doc/${pkgname}/"
+ cp -r doc/* "${pkgdir}/usr/share/doc/${pkgname}/"
+ rm -r "${pkgdir}/usr/share/doc/${pkgname}/man"
mkdir -p "${pkgdir}/usr/share/man/man6/${pkgname}"
- rm doc/man/speed-dreams.es.6
cp doc/man/* "${pkgdir}/usr/share/man/man6/${pkgname}"
+
+ # Symlink for backwards compatibility
+ cd "${pkgdir}/usr/bin"
+ ln -s speed-dreams-2 speed-dreams
}
# vim:set ts=2 sw=2 et: