-
Notifications
You must be signed in to change notification settings - Fork 208
97 lines (95 loc) · 3.45 KB
/
enigma2.yml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Enigma2 CI
on:
push:
branches: [ develop ]
paths-ignore:
- '**/README'
pull_request:
branches: [ develop ]
paths-ignore:
- '**/README'
jobs:
build:
runs-on: ubuntu-20.04
env:
CC: "gcc-10"
CXX: "g++-10"
steps:
- uses: actions/checkout@v3
- name: install python packages
run: |
pip3 install netifaces pyopenssl python-wifi service_identity twisted
- name: install dev packages
run: |
sudo apt-get -q update
sudo apt install docbook-xsl gettext libunwind-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libfribidi-dev libavahi-client-dev libgif-dev mm-common
- name: build enigma2 dependencies
run: |
echo installing libdvbsi++
pushd .
cd /tmp
git clone --depth 1 https://github.com/jack2015/libdvbsi.git
cd libdvbsi
autoreconf -i
./configure
make
sudo make install
popd
echo installing tuxbox
pushd .
cd /tmp
git clone --depth 1 https://github.com/OpenPLi/tuxtxt.git
cd tuxtxt/libtuxtxt
autoreconf -i
./configure --with-boxtype=generic DVB_API_VERSION=5
make
sudo make install
cd ../tuxtxt
autoreconf -i
./configure --with-boxtype=generic DVB_API_VERSION=5
make
sudo make install
popd
echo installing libsigc++3
pushd .
cd /tmp
git clone --depth 1 https://github.com/dbus-cxx/libsigc--3.0.git
cd libsigc--3.0
autoreconf -i
./configure
make
sudo make install
popd
- name: patch enigma cpp files
run: |
sed -i 's/eFatal/eDebug/g' lib/gdi/gfbdc.cpp
- name: build enigma2
run: |
echo compiling enigma2
autoreconf -i
./configure --with-libsdl=no --with-boxtype=nobox --enable-dependency-tracking ac_cv_prog_c_openmp=-fopenmp --with-textlcd
make
python3 -m compileall .
- name: patch enigma py files
run: |
sed -i 's/reloadWindowStyles() #/# reloadWindowStyles() #/g' lib/python/skin.py
sed -i 's/setResolution(xres, yres/setResolution(xres, yres, 8/g' lib/python/skin.py
sed -i '1 i\globals()["__builtins__"]["ngettext"] = ngettext' lib/python/Tools/Profile.py
sed -i '1 i\from gettext import ngettext' lib/python/Tools/Profile.py
sed -i 's/reactor.run/pass # reactor.run/g' lib/python/StartEnigma.py
sed -i 's/enigma.quitMainloop(5)/enigma.quitMainloop(1)/' lib/python/StartEnigma.py
sed -i 's/import enigma/import enigma\nenigma.quitMainloop(1)/' lib/python/StartEnigma.py
echo 'enigma.quitMainloop(0)' >> lib/python/StartEnigma.py
- name: install enigma
run: |
sudo make install
sudo mkdir -p '/usr/local/etc/enigma2'
sudo sh -c "echo 'config.misc.do_overscanwizard=false' > /usr/local/etc/enigma2/settings"
sudo sh -c "echo 'config.misc.firstrun=false' >> /usr/local/etc/enigma2/settings"
sudo sh -c "echo 'config.misc.initialchannelselection=false' >> /usr/local/etc/enigma2/settings"
sudo sh -c "echo 'config.misc.languageselected=false' >> /usr/local/etc/enigma2/settings"
sudo sh -c "echo 'config.misc.videowizardenabled=false' >> /usr/local/etc/enigma2/settings"
- name: start enigma2
run: |
sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ENIGMA_DEBUG_LVL=5 enigma2
echo done!