2010-12-24 08:20:06 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-12-11 15:46:24 +08:00
|
|
|
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves gmail.com>
|
2010-12-24 08:20:06 +08:00
|
|
|
|
|
|
|
pkgname=supertuxkart
|
|
|
|
_pkgname=SuperTuxKart
|
2013-11-27 04:16:31 +08:00
|
|
|
pkgver=0.8.1
|
|
|
|
pkgrel=1
|
2010-12-24 08:20:06 +08:00
|
|
|
pkgdesc="Kart racing game featuring Tux and friends."
|
|
|
|
url="http://supertuxkart.sourceforge.net/"
|
2012-12-11 15:46:24 +08:00
|
|
|
arch=('x86_64')
|
|
|
|
license=('GPL3' 'GPL2' 'CCPL-by' 'CCPL-by-sa' 'custom:Public Domain')
|
|
|
|
depends=('bullet' 'bzip2' 'curl' 'enet' 'fribidi' 'freeglut' 'irrlicht' 'libgl' 'libjpeg' 'libogg' 'libpng' 'libvorbis' 'openal' 'wiiuse')
|
2010-12-24 08:20:06 +08:00
|
|
|
conflicts=('supertuxkart-svn')
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2010-12-24 08:20:06 +08:00
|
|
|
changelog=ChangeLog
|
2012-12-11 15:46:24 +08:00
|
|
|
source=("http://downloads.sourceforge.net/project/${pkgname}/${_pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.bz2"
|
|
|
|
"$pkgname-system-libs.diff"
|
|
|
|
"FindEnet.cmake"
|
|
|
|
"FindIrrlicht.cmake"
|
|
|
|
"FindWiiUse.cmake")
|
2013-11-27 04:16:31 +08:00
|
|
|
md5sums=('aa31ecf883dc35859eec76c667f1a6d6'
|
|
|
|
'0b45cd22405166e2d6a342162a20d482'
|
2012-12-11 15:46:24 +08:00
|
|
|
'f63b2d5fbac6c53699aaaf97ed7f89d6'
|
|
|
|
'78735ca4da9c04422a09f385561f5d9d'
|
|
|
|
'b23cdd616cb27e2c114bbb1e3840274c')
|
2010-12-24 08:20:06 +08:00
|
|
|
|
|
|
|
build() {
|
2012-12-11 15:46:24 +08:00
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
2010-12-24 08:20:06 +08:00
|
|
|
|
2012-12-11 15:46:24 +08:00
|
|
|
# Patches.
|
2012-11-11 03:45:07 +08:00
|
|
|
|
2012-12-11 15:46:24 +08:00
|
|
|
# For using system libraries.
|
|
|
|
patch -uN CMakeLists.txt $srcdir/$pkgname-system-libs.diff
|
|
|
|
sed -e "s#wiiuse/wiiuse.h#wiiuse.h#" -i src/input/wiimote_manager.cpp
|
|
|
|
cp $srcdir/*.cmake cmake/
|
2012-11-11 03:45:07 +08:00
|
|
|
|
2012-12-11 15:46:24 +08:00
|
|
|
mkdir -p build && cd build
|
|
|
|
cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DUSE_WIIUSE=ON \
|
|
|
|
-DUSE_FRIBIDI=ON \
|
|
|
|
..
|
2010-12-24 08:20:06 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-12-11 15:46:24 +08:00
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}/build"
|
2010-12-24 08:20:06 +08:00
|
|
|
|
2011-11-17 08:42:36 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2012-12-11 15:46:24 +08:00
|
|
|
|
|
|
|
# Desktop Integration
|
|
|
|
sed -e "s@/usr/games@/usr/bin@" -i $pkgdir/usr/share/applications/$pkgname.desktop
|
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-12-11 15:46:24 +08:00
|
|
|
# Licensing
|
2011-11-17 08:42:36 +08:00
|
|
|
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
ln -s "${pkgdir}/usr/share/games/${pkgname}/data/CREDITS" "${pkgdir}/usr/share/licenses/${pkgname}/AUTHORS"
|
2012-12-11 16:58:25 +08:00
|
|
|
cp "${srcdir}/${_pkgname}-$pkgver/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2010-12-24 08:20:06 +08:00
|
|
|
}
|
2013-11-27 04:16:31 +08:00
|
|
|
md5sums=('aa31ecf883dc35859eec76c667f1a6d6'
|
|
|
|
'782d4f79b0ee7d6c276a06930c70e93e'
|
|
|
|
'f63b2d5fbac6c53699aaaf97ed7f89d6'
|
|
|
|
'78735ca4da9c04422a09f385561f5d9d'
|
|
|
|
'b23cdd616cb27e2c114bbb1e3840274c')
|