forked from Raider05/enigma2pc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_plugins.sh
executable file
·53 lines (42 loc) · 1.81 KB
/
build_plugins.sh
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
#!/bin/sh
# Build and install plugins for enigma2pc
INSTALL_E2DIR="/usr/local/e2"
echo "-----------------------------------------"
echo "*** INSTALL REQUIRED PACKAGES ***"
echo "-----------------------------------------"
REQPKG="python-cheetah python-twisted-web ntpdate dvb-apps \
"
for p in $REQPKG; do
echo -n ">>> Checking \"$p\" : "
dpkg -s $p >/dev/null
if [ "$?" -eq "0" ]; then
echo "package is installed, skip it"
else
echo "package NOT present, installing it"
sudo apt-get -y --force-yes install $p
fi
done
cd plugins/plugins-enigma2
autoreconf -i
PKG_CONFIG_PATH=$INSTALL_E2DIR/lib/pkgconfig ./configure --prefix=$INSTALL_E2DIR
make
sudo make install
# Create symlink for Skin HD_LINE_TVPRO
sudo ln -s $INSTALL_E2DIR/lib/enigma2/python/Plugins/Extensions/BitrateViewer/bitratecalc.so $INSTALL_E2DIR/lib/enigma2/python/Components/Converter/bitratecalc.so
#ln -s $INSTALL_E2DIR/bin/bitrate /usr/local/bin/bitrate
echo "-----------------------------"
echo "Copy plugins E2PC"
echo "-----------------------------"
cd ..
sudo cp -fR Extensions/* $INSTALL_E2DIR/lib/enigma2/python/Plugins/Extensions/
sudo cp -fR SystemPlugins/* $INSTALL_E2DIR/lib/enigma2/python/Plugins/SystemPlugins/
sudo cp -fR PLi/* $INSTALL_E2DIR/lib/enigma2/python/Plugins/PLi/
echo "-----------------Installed plugins:----------------------"
echo " BouquetHotkeys, EPGSearch, OpenWebIf, OscamStatus, TMBD,"
echo " SimpleUmount, TMBD, xModem, SystemTime, BitrateViewer, "
echo " Filebrowser, PermanentClock, VirtualZap"
cd ../skins
sudo cp -fR * $INSTALL_E2DIR/share/enigma2/
echo "-----------------Installed skins:----------------------"
echo " HD_LINE_TVPRO, classplus_hd-Domica "
echo "*************************<END>*************************"