forked from knowknowledge/Epiar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
79 lines (55 loc) · 2.87 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Basic Installation
==================
Compiling
=========
In order to compile the game you need the next dependancies (some of
them will be used in the future but not in the present):
sdl, sdl_image, sdl_net, sdl_mixer, openal, mesa, libgl, libxml2, zlib
On some linux distributions those dependancies needed to compile and
dependancies needed to run a game are separated to two packages. Make sure
you install them both (for example sdl and sdl-dev etc..)
The simplest way to compile this package is:
1. 'cd' to the directory containing the package's source code and type
'sh autogen.sh' to generate a configure file for the package.
2. Type './configure' this will check and see if the dependancies are
installed on the system. If it fails saying that something was not
found make sure you installed the dependancies we listed above.
3. Type 'make' to compile the package.
!Right now there is no auto install method please check the next section!
Installing
==========
In the time of writing this document there is not installation method
Epiar creates a bin file in the same foder that all the game and compilation
data resides (the cvs folder you checked into), In the future data folder
would be separated and also 'make install' will work, until then if you want
to package this app or want to have a clean directory with only the files
needed for Epiar to work do the next things:
1. Decide where you want the data dir of epiar to be and make sure you have
permissions to write to this new dir (by applying sudo to the next
operations if needed)
2. Create this folder with 'mkdir -p /the/epiar/dir'
3. copy all files with the extensions *.xml *.png *.af *.dat *.ani
from the folder you built epiar in to the new dir.
you can do this with 'cp -t /the/epiar/dir *.xml *.png *.af *.dat *.ani'.
3. Copy the Epiar executable to the same dir 'cp Epiar /the/epiar/dir'
4. You can remove the dir you compiled in with 'rm -r /compiling/dir'
5. For conviniance you can create a simple shell script to put in "/usr/bin"
Follow the instructions in the next section if you want to do so.
The Script
==========
To have epiar executed whenever you write 'epiar' in the terminal, you create the
next script and move it to "/usr/bin"
The script file name should be "epiar" or any other name that you wish to type in
the terminal to run epiar.
Inside this text file put the lines beetwen -start- and -end-:
-start-
#!/bin/sh
cd /the/epiar/dir/
./epiar
-end-
Note that "/the/epiar/dir/" should be changed to the directory with epiar data in it.
Next make sure the script is executable by running 'chmod a+x epiar", change epiar to
the name of your script if needed.
Finally copy this script to "/usr/bin" (you will probably need to use sudo with the
next command) 'mv epiar /usr/bin' or with sudo 'sudo mv epiar /usr/bin'
Enjoy!