updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / supertux-editor / PKGBUILD
blob4b861f74d796d4452f59ba6059735c05238bbc5b
1 # Contributor: Glorf <michal99999@gmail.com>
2 pkgname=supertux-editor
3 pkgver=6693
4 pkgrel=1
5 pkgdesc="SVN official SuperTux Level Editor"
6 arch=(any)
7 source="supertux-editor-datadir.patch"
8 url="http://supertux.lethargik.org/"
9 license=('GPL')
10 md5sums=('d804d01fa72c7bcd336420459da731da')
11 depends=('supertux>=0.3.3' 'mesa' 'mono>=1.1.13' 'gtk-sharp-2' 'subversion')
13 build() {
14   cd $startdir/src
15   svn checkout http://supertux.lethargik.org/svn/supertux/trunk/supertux-editor
16   cd $srcdir/$pkgname
17   #This patch is changing datadir to arch ones
18   patch $srcdir/$pkgname/$pkgname/Settings.cs < $startdir/supertux-editor-datadir.patch
19   make
21 package() {
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
32     fi
33   done
34   
35   cp -R data/* $startdir/pkg/usr/share/$pkgname/data
36   install supertux-editor.exe $startdir/pkg/usr/share/$pkgname
37   
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