summaryrefslogtreecommitdiff
path: root/community/speed-dreams/PKGBUILD
blob: e5c547b4ece7f7601f8643d7bf1187fd8fa3e2ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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: