diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-09-05 11:13:43 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-09-05 11:13:43 -0300 |
commit | 58d6937e71aea203f6693a68146018f950922fbc (patch) | |
tree | 3b53b76f930f60717debca5e0d612eeab0279b39 /community/speed-dreams | |
parent | d07d53d7af1e9694d9558783841bc2df3124a90f (diff) | |
parent | f651180e6b1ac9508ec0d1d9b94972de776020a9 (diff) |
I don't understand gcc/PKGBUILD.mips64el
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/addresses/PKGBUILD
community/chmsee/PKGBUILD
community/coin/PKGBUILD
community/critterding/PKGBUILD
community/distcc/PKGBUILD
community/djview4/PKGBUILD
community/freedroid/PKGBUILD
community/gnumail/PKGBUILD
community/gyachi/PKGBUILD
community/java-oracle/PKGBUILD
community/liboop/PKGBUILD
community/ltris/PKGBUILD
community/nepim/PKGBUILD
community/pantomime/PKGBUILD
community/pyxattr/PKGBUILD
community/soqt/PKGBUILD
community/tilda/PKGBUILD
community/unrealircd/PKGBUILD
community/uqm/PKGBUILD
core/dnsutils/PKGBUILD
core/gcc/PKGBUILD.mips64el
core/vpnc/PKGBUILD
extra/apache/PKGBUILD
extra/bind/PKGBUILD
extra/bzflag/PKGBUILD
extra/ccache/PKGBUILD
extra/claws-mail-extra-plugins/PKGBUILD
extra/clutter-gst/PKGBUILD
extra/cups/PKGBUILD
extra/doxygen/PKGBUILD
extra/fam/PKGBUILD
extra/fcitx/PKGBUILD
extra/gdk-pixbuf2/PKGBUILD
extra/geoip/PKGBUILD
extra/gtk2/PKGBUILD
extra/icedtea-web/PKGBUILD
extra/libffi/PKGBUILD
extra/libfwbuilder/PKGBUILD
extra/libmpd/PKGBUILD
extra/libreoffice/PKGBUILD
extra/mesa/PKGBUILD
extra/pygobject2/PKGBUILD
extra/qt/PKGBUILD
extra/samba/PKGBUILD
extra/wireshark/PKGBUILD
extra/xulrunner/PKGBUILD
multilib-testing/lib32-keyutils/PKGBUILD
multilib-testing/lib32-udev/PKGBUILD
multilib/lib32-gtk2/PKGBUILD
multilib/lib32-keyutils/PKGBUILD
multilib/lib32-libcups/PKGBUILD
multilib/lib32-qt/PKGBUILD
multilib/wine/PKGBUILD
multilib/wine_gecko/PKGBUILD
testing/dash/PKGBUILD
testing/libssh2/PKGBUILD
Diffstat (limited to 'community/speed-dreams')
-rw-r--r-- | community/speed-dreams/PKGBUILD | 61 | ||||
-rw-r--r-- | community/speed-dreams/speed-dreams.desktop | 4 | ||||
-rw-r--r-- | community/speed-dreams/speed-dreams.sh | 3 |
3 files changed, 41 insertions, 27 deletions
diff --git a/community/speed-dreams/PKGBUILD b/community/speed-dreams/PKGBUILD index c704a79a1..a0da1dad9 100644 --- a/community/speed-dreams/PKGBUILD +++ b/community/speed-dreams/PKGBUILD @@ -1,43 +1,60 @@ -# $Id: PKGBUILD 39442 2011-02-10 06:52:04Z svenstaro $ +# $Id: PKGBUILD 55048 2011-09-01 02:59:17Z 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 +pkgver=2.0.0a3 +_pkgver=2.0.0-a3-r3412 +pkgrel=4 pkgdesc="A racing simulator with rich graphics and physics" arch=('i686' 'x86_64' 'mips64el') 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') +depends=('sdl' 'freealut' 'freeglut' 'libpng' 'libxi' 'libxmu' 'libxrandr' 'plib>=1.8.3' 'libjpeg' 'zlib' 'enet' 'speed-dreams-data') +makedepends=('cmake' 'p7zip') +source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${_pkgver}-src.tar.7z" + "${pkgname}.desktop") +md5sums=('659837e8866c59c85279c31fcaba4144' + '6b45e9c40984ebb79a1dfaddbfabde92') build() { - cd "$srcdir/${pkgname}-${pkgver}-src" - - unset LDFLAGS MAKEFLAGS # How can a build system be this broken? + 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 - ./configure --prefix="/opt/${pkgname}" --x-includes=/usr/include --x-libraries=/usr/lib make } package() { - cd "$srcdir/${pkgname}-${pkgver}-src" + cd "$srcdir/${pkgname}-${_pkgver}-src" - make DESTDIR="${pkgdir}/" install datainstall + 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" - 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}" + mkdir -p "${pkgdir}/usr/share/man/man6/${pkgname}" + rm doc/man/speed-dreams.es.6 + cp doc/man/* "${pkgdir}/usr/share/man/man6/${pkgname}" - find "${pkgdir}/" -type d -exec chmod 755 {} \; - rm -r $pkgdir/opt/${pkgname}/share + # 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/speed-dreams/speed-dreams.desktop b/community/speed-dreams/speed-dreams.desktop index fa39ed1e5..f04b71791 100644 --- a/community/speed-dreams/speed-dreams.desktop +++ b/community/speed-dreams/speed-dreams.desktop @@ -1,8 +1,8 @@ [Desktop Entry] Name=Speed Dreams Comment=The Open Racing Car Simulator Fork -Exec=/opt/speed-dreams/bin/speed-dreams -Icon=speed-dreams.png +Exec=speed-dreams-2 +Icon=speed-dreams.svg Terminal=false Type=Application Encoding=UTF-8 diff --git a/community/speed-dreams/speed-dreams.sh b/community/speed-dreams/speed-dreams.sh deleted file mode 100644 index fa6dde97a..000000000 --- a/community/speed-dreams/speed-dreams.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -cd /opt/speed-dreams/bin -./speed-dreams |