1 #Contributor: Eric Forgeot < http://ifiction.free.fr > & franzrogar
5 pkgdesc="A free and cross-platform engine that helps you use words, pictures, and sounds to tell stories with the computer."
7 url="http://www.renpy.org"
9 #depends=('python-pygame' 'java-runtime')
10 depends=('gtk2' 'zenity')
11 if test "$CARCH" == x86_64; then
12 depends=("${depends[@]}" lib32-alsa-lib)
15 source=(http://www.renpy.org/dl/${pkgver}/${pkgname}-${pkgver}-sdk.tar.bz2 http://www.renpy.org/w/images/8/86/scite-renpy-20090803.zip)
17 md5sums=('8bf8f11502dc6d1ae0168bc515b7e93d'
18 '417be4131524cf62c779e4faa1570745')
24 #Some problems about renpy on linux are discussed there:
25 #http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=4770
27 cd $srcdir/${pkgname}-${pkgver}
28 #rm -rf $srcdir/${pkgname}-${pkgver}/jedit
30 mkdir -p $pkgdir/usr/share/renpy
31 mkdir -p $pkgdir/usr/bin
33 cp -fr $srcdir/${pkgname}-${pkgver}/* $pkgdir/usr/share/renpy
34 #chmod -R 777 $pkgdir/usr/share/renpy
37 echo "if [ -d ~/renpy_projects ]; then
38 echo 'The renpy_projects is already existing, using it.'
40 mkdir ~/renpy_projects
43 /usr/share/renpy/renpy.sh
44 " > $pkgdir/usr/bin/renpy
46 chmod +x $pkgdir/usr/bin/renpy
49 mkdir -p $pkgdir/usr/share/pixmaps
50 cp $srcdir/../renpy_logo.png $pkgdir/usr/share/pixmaps/renpy.png
52 install -D -m644 $srcdir/../renpy.desktop $pkgdir/usr/share/applications/renpy.desktop
54 #getting scite again, as discussed on http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=4133&hilit=config.editor
56 rm $srcdir/scite/scite.exe
57 cp -fr $srcdir/scite $pkgdir/usr/share/renpy/
58 #mv $pkgdir/usr/share/renpy/launcher/editor.rpy $pkgdir/usr/share/renpy/launcher/editor.rpy.jedit
59 #cp -fr $srcdir/${pkgname}-${pkgver}/launcher/editor.rpy $pkgdir/usr/share/renpy/launcher/