[d6cb62]: xbmc_setup_fedoracore6.sh Maximize Restore History

Repo status: analyzing...

Download this file

xbmc_setup_fedoracore6.sh    69 lines (60 with data), 1.6 kB

 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
#!/bin/sh
#
# $Header$
# Unix shell script to setup Fedora Core 6 for development of the
# Linux port of XBMC
# note, the glew packages are from the 'dribble' repository
# to setup the livna repo...
# rpm -ivh http://rpm.livna.org/livna-release-6.rpm
# to setup the dribble repo...
# rpm -ivh http://dribble.org.uk/repo/dribble-release-5-3.noarch.rpm
# list of all required packages
reqd_pkgs=( \
gcc \
gcc-c++ \
SDL \
SDL-devel \
SDL_image \
SDL_image-devel \
SDL_gfx \
SDL_gfx-devel \
SDL_mixer \
SDL_mixer-devel \
SDL_sound \
SDL_sound-devel \
libcdio \
libcdio-devel \
fribidi \
fribidi-devel \
lzo \
lzo-devel \
freetype \
freetype-devel \
sqlite \
sqlite-devel \
libogg \
libogg-devel \
samba-client \
python \
python-devel \
python-sqlite \
curl \
curl-devel \
glew \
glew-devel \
alsa-lib-devel \
alsa-lib \
)
len=${#reqd_pkgs[*]}
echo "Checking to see if the $len pre-reqs are installed:"
i=0
while [ $i -lt $len ]; do
# check to see if it's installed
rpm -q "${reqd_pkgs[$i]}"
if [ $? -ne 0 ]
then
echo " ${reqd_pkgs[$i]} will be installed"
yum install -y "${reqd_pkgs[$i]}"
fi
let i++
done