updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / renpy / PKGBUILD
blobd53eb215554c740449ffde50a2080c9ef8edf4a4
1 #Contributor: Eric Forgeot < http://ifiction.free.fr > & franzrogar
2 pkgname=renpy
3 pkgver=6.13.7
4 pkgrel=1
5 pkgdesc="A free and cross-platform engine that helps you use words, pictures, and sounds to tell stories with the computer."
6 arch=('i686' 'x86_64')
7 url="http://www.renpy.org"
8 license=('MIT')
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')
22 build() {
24         #Some problems about renpy on linux are discussed there:
25         #http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=4770
26         
27   cd $srcdir/${pkgname}-${pkgver}
28         #rm -rf $srcdir/${pkgname}-${pkgver}/jedit
29         
30         mkdir -p $pkgdir/usr/share/renpy
31         mkdir -p $pkgdir/usr/bin
32         
33         cp -fr $srcdir/${pkgname}-${pkgver}/* $pkgdir/usr/share/renpy
34         #chmod -R 777 $pkgdir/usr/share/renpy
35         
36         #starting script
37         echo "if [ -d ~/renpy_projects ]; then
38 echo 'The renpy_projects is already existing, using it.'
39 else
40 mkdir ~/renpy_projects
42 cd ~/renpy_projects
43 /usr/share/renpy/renpy.sh
44 " > $pkgdir/usr/bin/renpy
46         chmod +x $pkgdir/usr/bin/renpy
47         
48         #desktop icons
49         mkdir -p $pkgdir/usr/share/pixmaps
50         cp $srcdir/../renpy_logo.png $pkgdir/usr/share/pixmaps/renpy.png
51         
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
55         
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/