2011-02-10 02:44:43 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-04-27 09:29:06 +08:00
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
2011-02-10 02:44:43 +08:00
|
|
|
|
2012-04-27 09:29:06 +08:00
|
|
|
pkgbase=speed-dreams
|
|
|
|
pkgname=('speed-dreams' 'speed-dreams-data')
|
|
|
|
pkgver=2.0.0
|
|
|
|
_pkgver=2.0.0-r4687
|
2013-06-03 00:47:42 +08:00
|
|
|
pkgrel=7
|
2012-04-27 09:29:06 +08:00
|
|
|
pkgdesc="A racing simulator with rich graphics and physics"
|
2011-02-10 02:44:43 +08:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://speed-dreams.sourceforge.net/"
|
|
|
|
license=('GPL2')
|
2012-04-27 09:29:06 +08:00
|
|
|
depends=('enet' 'freeglut' 'libgl' 'libjpeg' 'libpng' 'libxi' 'libxmu' 'libxrandr' 'openal' 'plib' 'sdl' 'zlib')
|
|
|
|
makedepends=('mesa')
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2012-04-27 09:29:06 +08:00
|
|
|
source=("http://downloads.sourceforge.net/project/$pkgbase/$pkgver/$pkgbase-src-base-$_pkgver.tar.xz"
|
|
|
|
"http://downloads.sourceforge.net/project/$pkgbase/$pkgver/$pkgbase-src-hq-cars-and-tracks-$_pkgver.tar.xz"
|
|
|
|
"http://downloads.sourceforge.net/project/$pkgbase/$pkgver/$pkgbase-src-more-hq-cars-and-tracks-$_pkgver.tar.xz"
|
|
|
|
"http://downloads.sourceforge.net/project/$pkgbase/$pkgver/$pkgbase-src-wip-cars-and-tracks-$_pkgver.tar.xz"
|
|
|
|
"http://downloads.sourceforge.net/project/$pkgbase/$pkgver/$pkgbase-src-unmaintained-$_pkgver.tar.xz")
|
|
|
|
md5sums=('a6842887fc289ed6057be2ba9d2afaa2'
|
|
|
|
'57cf5c475491294ce1fb249e2dc0273b'
|
|
|
|
'c8ab7ef068fa3fbe67d2b3246b30ea8a'
|
|
|
|
'edcc842291737dbb13a3083252bf51d4'
|
|
|
|
'8505c46aae6ce56a43353b8899d40ce4')
|
2011-02-10 02:44:43 +08:00
|
|
|
|
|
|
|
build() {
|
2012-04-27 09:29:06 +08:00
|
|
|
cd $srcdir
|
2011-02-10 02:44:43 +08:00
|
|
|
|
2012-04-27 09:29:06 +08:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
Added new version of Enet, 1.2.4, with rebuild of 0 A.D., Lips of Suna, Speed Dreams, and SuperTuxKart. Lips of Suna was also upgraded to its latest version, 0.3.1. Also, SuperTuxKart was upgraded to its latest version, 0.7.1b, which also meant Irrlicht was replaced by a SVN version of itself, and SuperTuxKart packages for tracks and karts were removed, since they can be installed from the game itself.
2011-06-03 14:07:34 +08:00
|
|
|
|
2012-04-27 09:29:06 +08:00
|
|
|
cmake \
|
|
|
|
-D OPTION_OFFICIAL_ONLY:BOOL=ON \
|
|
|
|
-D CMAKE_INSTALL_PREFIX:STRING=/usr \
|
|
|
|
-D SD_LOCALDIR:STRING=~/.speed-dreams \
|
|
|
|
..
|
2011-02-10 02:44:43 +08:00
|
|
|
make
|
2012-04-27 09:29:06 +08:00
|
|
|
|
|
|
|
mkdir -p ../tmppkg
|
|
|
|
make DESTDIR=../tmppkg install
|
2011-02-10 02:44:43 +08:00
|
|
|
}
|
|
|
|
|
2012-04-27 09:29:06 +08:00
|
|
|
package_speed-dreams() {
|
|
|
|
depends=(${depends[@]} speed-dreams-data)
|
|
|
|
|
|
|
|
cd $srcdir
|
|
|
|
|
|
|
|
# Copy game from the installation.
|
|
|
|
mkdir -p $pkgdir/usr
|
|
|
|
mv $srcdir/tmppkg/usr/games $pkgdir/usr/games
|
|
|
|
mv $srcdir/tmppkg/usr/include $pkgdir/usr/include
|
|
|
|
if [ -d "$srcdir/tmppkg/usr/lib64" ]; then
|
|
|
|
mv $srcdir/tmppkg/usr/lib64 $pkgdir/usr/lib64
|
|
|
|
else
|
|
|
|
mv $srcdir/tmppkg/usr/lib $pkgdir/usr/lib
|
|
|
|
fi
|
|
|
|
mkdir -p $pkgdir/usr/share
|
|
|
|
mv $srcdir/tmppkg/usr/share/man $pkgdir/usr/share/man
|
|
|
|
|
|
|
|
# Run Script.
|
2011-06-22 14:03:30 +08:00
|
|
|
mkdir -p $pkgdir/usr/bin
|
2012-04-27 09:29:06 +08:00
|
|
|
echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgbase
|
|
|
|
echo "/usr/games/speed-dreams-2" >> $pkgdir/usr/bin/$pkgbase
|
|
|
|
chmod +x $pkgdir/usr/bin/$pkgbase
|
|
|
|
|
|
|
|
# Desktop Integration.
|
|
|
|
install -Dm644 $srcdir/data/data/icons/icon.png $pkgdir/usr/share/pixmaps/$pkgname.png
|
|
|
|
}
|
2011-06-22 14:03:30 +08:00
|
|
|
|
2012-04-27 09:29:06 +08:00
|
|
|
package_speed-dreams-data() {
|
|
|
|
depends=()
|
|
|
|
pkgdesc="$pkgdesk (data files)"
|
|
|
|
|
|
|
|
cd $srcdir
|
|
|
|
|
|
|
|
# Copy game from the installation.
|
|
|
|
mkdir -p $pkgdir/usr/share
|
|
|
|
mv $srcdir/tmppkg/usr/share/games $pkgdir/usr/share/games
|
2011-02-10 02:44:43 +08:00
|
|
|
}
|