1 # Contributor: Eric Forgeot < http://anamnese.online.fr >
5 pkgdesc="a fork of Squeak, an implementation of the object-oriented, dynamically typed, reflective programming language Smalltalk"
7 url="http://www.pharo-project.org/"
9 if [ "$CARCH" = "x86_64" ]; then
10 depends=('lib32-alsa-lib' 'lib32-libvorbis' 'lib32-pango' 'lib32-mesa' 'nas' 'lib32-dbus-core' 'lib32-libxml2')
12 depends=('alsa-lib' 'libvorbis' 'pango' 'mesa' 'nas' 'dbus-core' 'libxml2')
15 source=(http://gforge.inria.fr/frs/download.php/29054/Pharo-1.3-13307-OneClick.zip)
16 md5sums=('b6858dcf088050e8c2450a889e1e50ea')
19 cd $srcdir/Pharo-1.3-13307-OneClick.app/
20 rm -fr $srcdir/Pharo-1.3-13307-OneClick.app/Contents/Windows/
21 #rm $srcdir/Pharo-1.3-13307-OneClick.app/Pharo.lnk
22 rm -fr $srcdir/Pharo-1.3-13307-OneClick.app/Contents/MacOS/
23 rm -fr $srcdir/Pharo-1.3-13307-OneClick.app/Contents/Resources/*.bundle
24 mkdir -p $pkgdir/usr/share/pharo
25 mkdir -p $pkgdir/usr/bin/
27 cp -fr $srcdir/Pharo-1.3-13307-OneClick.app/* $pkgdir/usr/share/pharo
28 echo "cd /usr/share/pharo
29 sh pharo.sh" > $pkgdir/usr/bin/pharo
31 chmod +x $pkgdir/usr/share/pharo/pharo.sh
32 chmod +x $pkgdir/usr/bin/pharo
34 chgrp -R users $pkgdir/usr/share/pharo/
35 chmod -R 775 $pkgdir/usr/share/pharo/
38 mkdir -p $pkgdir/usr/share/pixmaps
39 mkdir -p $pkgdir/usr/share/applications
41 cp $srcdir/../$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
43 install -D -m644 $srcdir/../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop