diff options
author | root <root@rshg054.dnsready.net> | 2012-01-22 23:15:13 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-22 23:15:13 +0000 |
commit | 164067832916c8e59219e1b0f30d7d04618a536e (patch) | |
tree | 5ec718dc77dfccfcdb1409707658bef3fb421ac4 /community-staging/speed-dreams | |
parent | a1922d0ec660fdc1892f2783515f781c090df0a9 (diff) |
Sun Jan 22 23:15:13 UTC 2012
Diffstat (limited to 'community-staging/speed-dreams')
-rw-r--r-- | community-staging/speed-dreams/PKGBUILD | 61 | ||||
-rw-r--r-- | community-staging/speed-dreams/speed-dreams.desktop | 9 |
2 files changed, 70 insertions, 0 deletions
diff --git a/community-staging/speed-dreams/PKGBUILD b/community-staging/speed-dreams/PKGBUILD new file mode 100644 index 000000000..3fdf875d9 --- /dev/null +++ b/community-staging/speed-dreams/PKGBUILD @@ -0,0 +1,61 @@ +# $Id: PKGBUILD 62456 2012-01-20 07:08:15Z 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=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=('5299fe23aec3641827039ae3c69de460' + '6b45e9c40984ebb79a1dfaddbfabde92') + +build() { + 7z x ${pkgname}-${_pkgver}-src.tar.7z + tar xf ${pkgname}-${_pkgver}-src.tar + + cd "${pkgname}-${_pkgver}-src" + + cmake . \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSD_BINDIR=/usr/bin \ + -DSD_DATADIR=/usr/share/speed-dreams-2 \ + -DSD_LIBDIR=/usr/lib/speed-dreams-2 \ + -DOPTION_OFFICIAL_ONLY:BOOL=ON + + make +} + +package() { + cd "$srcdir/${pkgname}-${_pkgver}-src" + + make DESTDIR="${pkgdir}/" install + + rm -r "${pkgdir}/usr/share" + + install -Dm644 "data/data/icons/icon.png" "${pkgdir}/usr/share/pixmaps/speed-dreams.png" + install -Dm644 "data/data/icons/icon.svg" "${pkgdir}/usr/share/pixmaps/speed-dreams.svg" + 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}/" + rm -r "${pkgdir}/usr/share/doc/${pkgname}/man" + + mkdir -p "${pkgdir}/usr/share/man/man6/${pkgname}" + 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: diff --git a/community-staging/speed-dreams/speed-dreams.desktop b/community-staging/speed-dreams/speed-dreams.desktop new file mode 100644 index 000000000..f04b71791 --- /dev/null +++ b/community-staging/speed-dreams/speed-dreams.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Speed Dreams +Comment=The Open Racing Car Simulator Fork +Exec=speed-dreams-2 +Icon=speed-dreams.svg +Terminal=false +Type=Application +Encoding=UTF-8 +Categories=Application;Game; |