1 # Contributor: Glorf <michal99999@gmail.com>
2 pkgname=supertux-editor
5 pkgdesc="SVN official SuperTux Level Editor"
7 source="supertux-editor-datadir.patch"
8 url="http://supertux.lethargik.org/"
10 md5sums=('d804d01fa72c7bcd336420459da731da')
11 depends=('supertux>=0.3.3' 'mesa' 'mono>=1.1.13' 'gtk-sharp-2' 'subversion')
15 svn checkout http://supertux.lethargik.org/svn/supertux/trunk/supertux-editor
17 #This patch is changing datadir to arch ones
18 patch $srcdir/$pkgname/$pkgname/Settings.cs < $startdir/supertux-editor-datadir.patch
22 cd $startdir/src/$pkgname
23 install -d $startdir/pkg/usr/share/$pkgname
24 install -d $startdir/pkg/usr/share/$pkgname/data
25 install -d $startdir/pkg/usr/share/applications
26 install -d $startdir/pkg/usr/share/pixmaps
27 install -d $startdir/pkg/usr/bin
28 for _file in gtkgl-sharp libeditor Lisp LispReader Resources; do
29 install -m 755 $_file.dll $startdir/pkg/usr/share/$pkgname
30 if [ -e $_file.dll.config ]; then
31 install -m 644 $_file.dll.config $startdir/pkg/usr/share/$pkgname
35 cp -R data/* $startdir/pkg/usr/share/$pkgname/data
36 install supertux-editor.exe $startdir/pkg/usr/share/$pkgname
38 install $startdir/src/$pkgname/supertux-editor.desktop $startdir/pkg/usr/share/applications
39 install supertux-editor.png supertux-editor.xpm $startdir/pkg/usr/share/pixmaps
41 msg "Creating launcher"
42 touch $startdir/pkg/usr/bin/supertux-editor
43 echo "#!/bin/sh" >> $startdir/pkg/usr/bin/supertux-editor
44 echo "/usr/bin/mono /usr/share/$pkgname/supertux-editor.exe" >> $startdir/pkg/usr/bin/supertux-editor
45 chmod 755 $startdir/pkg/usr/bin/supertux-editor