summaryrefslogtreecommitdiff
path: root/community/vdrift
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-04 00:04:04 +0000
committerroot <root@rshg054.dnsready.net>2012-09-04 00:04:04 +0000
commit8b7b4f2e5a808cb0c1226c23469fa57751eba190 (patch)
treed3b039c682e3991febbfa886b15b31cf09d048b8 /community/vdrift
parent81de702a6fc79e430129a7d2b708d90f43ae5ba1 (diff)
Tue Sep 4 00:04:04 UTC 2012
Diffstat (limited to 'community/vdrift')
-rw-r--r--community/vdrift/PKGBUILD36
1 files changed, 15 insertions, 21 deletions
diff --git a/community/vdrift/PKGBUILD b/community/vdrift/PKGBUILD
index e6845d2be..a5369d307 100644
--- a/community/vdrift/PKGBUILD
+++ b/community/vdrift/PKGBUILD
@@ -1,26 +1,25 @@
-# $Id: PKGBUILD 74628 2012-07-31 19:57:06Z ebelanger $
+# $Id: PKGBUILD 75820 2012-09-01 20:39:43Z heftig $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Lone_Wolf lonewolf@xs4all.nl
pkgname=vdrift
-pkgver=2011.10.22
-pkgrel=7
+pkgver=2012.07.22
+pkgrel=1
pkgdesc="Open source driving simulation made with drift racing in mind"
arch=('i686' 'x86_64')
url="http://vdrift.net/"
license=('GPL')
-depends=('bullet' 'curl' 'sdl_gfx' 'sdl_image' 'glew' 'libvorbis' 'vdrift-data'
+depends=('bullet' 'curl' 'sdl_gfx' 'sdl_image' 'glew' 'libvorbis' 'vdrift-data'
'gtk-update-icon-cache' 'hicolor-icon-theme' 'libarchive')
makedepends=('scons' 'boost' 'asio')
-source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${pkgver//./-}.tar.bz2)
-md5sums=('6f8806ab1be303e9e1e47522c9eee890')
-install=vdrift.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${pkgver//./-}.tar.bz2
+ http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${pkgver//./-}c_patch.diff)
+md5sums=('fcfd6b65724d32dfe383df216d7afb74'
+ '981cd26709f97cdf85100b720290177f')
build() {
- cd "$srcdir"
-
- cd $pkgname-${pkgver//./-}
+ cd VDrift
# select arch
if [ `uname -m` = "x86_64" ]; then
@@ -29,8 +28,7 @@ build() {
_sconsarch="686"
fi
- #sed -i 's/glGenerateMipmap/glGenerateMipmapEXT/g' src/texture.cpp
- #sed -i '/types.h/d' src/http.h
+ patch -Np0 < $srcdir/$pkgname-${pkgver//./-}c_patch.diff
# build and install
scons $MAKEFLAGS \
@@ -44,7 +42,7 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-${pkgver//./-}
+ cd VDrift
scons install
@@ -53,14 +51,10 @@ package() {
sed -i '1 s/^\xef\xbb\xbf//' "$pkgdir"/usr/share/applications/$pkgname.desktop # remove BOM (WHY IS THERE?)
# install icons
- install -Dm644 data/textures/icons/vdrift-16x16.png \
- "$pkgdir"/usr/share/icons/hicolor/16x16/apps/vdrift.png
- install -Dm644 data/textures/icons/vdrift-32x32.png \
- "$pkgdir"/usr/share/icons/hicolor/32x32/apps/vdrift.png
- install -Dm644 data/textures/icons/vdrift-64x64.png \
- "$pkgdir"/usr/share/icons/hicolor/64x64/apps/vdrift.png
- install -Dm644 data/textures/icons/vdrift-64x64.png \
- "$pkgdir/usr/share/pixmaps/$pkgname.png"
+ install -Dm644 data/textures/icons/vdrift-16x16.png "$pkgdir"/usr/share/icons/hicolor/16x16/apps/vdrift.png
+ install -Dm644 data/textures/icons/vdrift-32x32.png "$pkgdir"/usr/share/icons/hicolor/32x32/apps/vdrift.png
+ install -Dm644 data/textures/icons/vdrift-64x64.png "$pkgdir"/usr/share/icons/hicolor/64x64/apps/vdrift.png
+ install -Dm644 data/textures/icons/vdrift-64x64.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
rm -r "$pkgdir"/usr/share/vdrift
}