updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / ika / PKGBUILD
blobcef6a60e28d21aaa66d306934af41a397d240596
1 # Maintainer: Alex Abbott <smartboyathome@gmail.com>
3 pkgname=ika
4 pkgver=0.62
5 pkgrel=1
6 pkgdesc="An RPG gaming engine for python." 
7 arch=(i686 x86_64)
8 url="http://ika.sourceforge.net" 
9 license=('GPL')
10 depends=('python' 'audiere' 'sdl' 'wxgtk' 'corona')
11 makedepends=('scons')
12 source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-src-${pkgver}.tar.bz2)
13 md5sums=('4a76ac5841343d1fb492bddd8717fe15')
15 build() { 
16         cd $srcdir/src
17         echo "Patching Canvas.cpp"
18         sed -i -e "s/\#include\ <stdexcept>/\#include\ <stdexcept>\n#include\ <string.h>/g" common/Canvas.cpp
19         echo "Patching chr.cpp"
20         sed -i -e "s/\#include\ <stdexcept>/\#include\ <stdexcept>\n#include\ <string.h>/g" common/chr.cpp
21         echo "Patching fileio.cpp"
22         sed -i -e "s/\#include\ <stdio.h>/\#include\ <stdio.h>\n#include\ <string.h>/g" common/fileio.cpp
23         echo "Patching fontfile.cpp"
24         sed -i -e "s/\#include\ <limits>/\#include\ <limits>\n#include\ <string.h>\n#include\ <memory>/g" common/fontfile.cpp
25         echo "Patching vsp.cpp"
26         sed -i -e "s/\#include\ <stdio.h>/\#include\ <stdio.h>\n#include\ <string.h>/g" common/vsp.cpp
27         echo "Patching SConstruct"
28         sed -i -e "s/'\/usr'/'$pkgdir\/usr'/g" SConstruct
29         scons
30         mkdir -p $pkgdir/usr/bin
31         cp engine/ika $pkgdir/usr/bin