diff options
Diffstat (limited to 'community/speed-dreams/PKGBUILD')
-rw-r--r-- | community/speed-dreams/PKGBUILD | 43 |
1 files changed, 43 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: |