summaryrefslogtreecommitdiff
path: root/community/vdrift
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-05 23:14:38 +0000
committerroot <root@rshg054.dnsready.net>2011-09-05 23:14:38 +0000
commite05f52e52ba779f4b0ebb5463dba9fc74f67f0b8 (patch)
tree426be7e1703e9b4aaec588af1dcec4ae24fe161e /community/vdrift
parentf651180e6b1ac9508ec0d1d9b94972de776020a9 (diff)
Mon Sep 5 23:14:38 UTC 2011
Diffstat (limited to 'community/vdrift')
-rw-r--r--community/vdrift/PKGBUILD36
1 files changed, 11 insertions, 25 deletions
diff --git a/community/vdrift/PKGBUILD b/community/vdrift/PKGBUILD
index 41dab8d90..1e200c83d 100644
--- a/community/vdrift/PKGBUILD
+++ b/community/vdrift/PKGBUILD
@@ -1,24 +1,24 @@
-# $Id: PKGBUILD 47904 2011-05-26 00:55:30Z svenstaro $
+# $Id: PKGBUILD 55155 2011-09-04 13:08:06Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Lone_Wolf lonewolf@xs4all.nl
pkgname=vdrift
-pkgver=2010.06.30
-pkgrel=3
+pkgver=2011.09.01
+pkgrel=1
pkgdesc="An open source driving simulation made with drift racing in mind"
arch=('i686' 'x86_64')
url="http://vdrift.net/"
license=('GPL')
-depends=('sdl_gfx' 'sdl_image' 'glew' 'libvorbis' 'vdrift-data')
+depends=('bullet' 'curl' 'sdl_gfx' 'sdl_image' 'glew' 'libvorbis' 'vdrift-data')
makedepends=('scons' 'boost' 'asio')
-source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-${pkgver//./-}/$pkgname-${pkgver//./-}.tar.bz2
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-src-${pkgver//./-}.tar.bz2
$pkgname.desktop)
-md5sums=('ddcaf90bb25f9ce9cc084d7f467d7b56'
+md5sums=('a4099acacca3d4f0799b012cd168f1c0'
'8bb429f37bcb4aed5e7ab1d80c5a4f93')
build() {
- cd "$srcdir"/$pkgname-${pkgver//./-}
+ cd "$srcdir"/$pkgname-src-${pkgver//./-}
# select arch
if [ `uname -m` = "x86_64" ]; then
@@ -27,8 +27,8 @@ build() {
_sconsarch="686"
fi
- # patch for crashing with bad drivers
sed -i 's/glGenerateMipmap/glGenerateMipmapEXT/g' src/texture.cpp
+ sed -i '/types.h/d' src/http.h
# build and install
scons \
@@ -37,30 +37,16 @@ build() {
"release"=1 \
"force_feedback"=1 \
"prefix"=/usr \
- "datadir"=share/$pkgname/data || return 1
+ "datadir"=share/$pkgname/
}
package() {
- cd "$srcdir"/$pkgname-${pkgver//./-}
+ cd "$srcdir"/$pkgname-src-${pkgver//./-}
- scons install || return 1
-
- # remove some unneeded files
- find "$pkgdir"/usr/share/$pkgname -name SConscript -delete
-
- # install icons
- install -Dm644 data/textures/icons/$pkgname-16x16.png \
- "$pkgdir"/usr/share/icons/hicolor/16x16/apps/$pkgname.png
- install -Dm644 data/textures/icons/$pkgname-32x32.png \
- "$pkgdir"/usr/share/icons/hicolor/32x32/apps/$pkgname.png
- install -Dm644 data/textures/icons/$pkgname-64x64.png \
- "$pkgdir"/usr/share/icons/hicolor/64x64/apps/$pkgname.png
+ scons install
# install .desktop file
install -Dm644 ../$pkgname.desktop \
"$pkgdir"/usr/share/applications/$pkgname.desktop
-
- # delete installed data (will be provided by -data package)
- rm -r "$pkgdir"/usr/share/$pkgname
}
# vim: sw=2:ts=2 et: