-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcompile-jivelite.sh
executable file
·49 lines (42 loc) · 1.08 KB
/
compile-jivelite.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
#!/bin/bash
ARCH=$(uname -m)
case "$ARCH" in
aarch64)
export CPU=aarch64
;;
*)
export CPU=armv6hf
;;
esac
if [ ! -d jivelite ]; then
git clone https://github.com/ralph-irving/jivelite.git
cd jivelite
patch -p1 -i../jivelite-picoplayer-$CPU.patch || exit 1
cd lib-src
git clone https://github.com/ralph-irving/lirc-bsp
cd ../
else
cd jivelite
make PREFIX=/usr clean
patch -p1 -R -i../jivelite-picoplayer-$CPU.patch
git checkout src/version.h
git pull
patch -p1 -i../jivelite-picoplayer-$CPU.patch
fi
# Set jivelite version to 8.0.0 to indicate slimdevices player lua applet compatibility.
echo "#define JIVE_VERSION \"8.0.0-r$(git rev-list HEAD --count)\"" > src/version.h
make all || exit 2
if [ ! -d lua-5.1.5 ]; then
tar -xzf ../squeezeplay-lua-5.1.5-src.tar.gz
cd lua-5.1.5
patch -p0 -i../../squeezeplay-lua-$CPU.patch || exit 1
else
cd lua-5.1.5
make clean
patch -R -p0 -i../../squeezeplay-lua-$CPU.patch
if [ "$ARCH" != "aarch64" ]; then
svn up
fi
patch -p0 -i../../squeezeplay-lua-$CPU.patch
fi
make linux && exit 0