Pages: 1
  Print  
Author Topic: ENIGMA Installer for Linux  (Read 20978 times)
Offline (Male) RetroX
Posted on: August 04, 2010, 03:52:06 pm

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Code: [Select]
#!/bin/bash

startdir=$(pwd)
_svntrunk=https://enigma-dev.svn.sourceforge.net/svnroot/enigma-dev/
_svnmod=enigma-dev

svn co $_svntrunk

mkdir -p $startdir/pkg/opt/enigma

cp -r $startdir/$_svnmod/trunk -T $startdir/pkg/opt/enigma
cd $startdir/pkg/opt/enigma/CompilerSource

mkdir -p $startdir/pkg/usr/sbin
mkdir -p $startdir/pkg/usr/share/pixmaps
mkdir -p $startdir/pkg/usr/share/applications
mkdir -p $startdir/pkg/usr/share/mime/packages

mv $startdir/pkg/opt/enigma/enigma.svg $startdir/pkg/usr/share/pixmaps
mv $startdir/pkg/opt/enigma/enigma.desktop $startdir/pkg/usr/share/applications
mv $startdir/pkg/opt/enigma/enigma.xml $startdir/pkg/usr/share/mime/packages
mv $startdir/pkg/opt/enigma/enigma $startdir/pkg/usr/sbin

chmod -R 777 $startdir/pkg/opt/enigma
chmod 755 $startdir/pkg/usr/sbin/enigma
chmod 544 $startdir/pkg/usr/share/applications/enigma.desktop $startdir/pkg/usr/share/mime/packages/enigma.xml

make linux
rm -rf $(find $startdir/pkg | grep 'svn$')

rm -r $startdir/pkg/opt/enigma/CompilerSource/.eobjs

This is taken from a PKGBUILD that I made for Arch.  It can be applied to install ENIGMA on Ubuntu and other distros.  The original PKGBUILD can be found here.

To install this, run sudo cp pkg -T /.  Once this is done, run update-mime-database /usr/share/mime to update the MIME database.  In GNOME, run nautilus -q to make the changes take effect immediately, however, a safer way would be to log off and then back on.

This will add a link to ENIGMA (LGM, but it's called ENIGMA) in the applications menu as well as adding MIME association for Game Maker executables (identification even without an extension) and also the ability to run "enigma *file*" from a terminal to open LGM.

If anyone feels like making icons for GM projects, I'll add that as well.

Also, [tt] bbcodes are broken; fix them.
« Last Edit: August 10, 2010, 12:23:55 pm by RetroX » Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) retep998
Reply #1 Posted on: August 05, 2010, 10:27:09 pm

Member
Location: Where else?
Joined: Jan 2010
Posts: 248
MSN Messenger - retep998@charter.net AOL Instant Messenger - retep998 Yahoo Instant Messenger - retep998
View Profile Email
interesting but this is of no use to me for I do not use linux.
Logged
Pages: 1
  Print