-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_all.sh
71 lines (59 loc) · 2.48 KB
/
install_all.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
# install the xz if needed
# sudo apt-get install xz-utils
# create the installation folder
cd
mkdir Development
cd Development
# download all the folders and files
wget https://github.com/tednilsen/LazarusRPi3/raw/master/config_lazarus.tar.xz
wget https://github.com/tednilsen/LazarusRPi3/raw/master/fpcbootstrap.tar.xz
wget https://github.com/tednilsen/LazarusRPi3/raw/master/fpcpkgconfig.tar.xz
wget https://github.com/tednilsen/LazarusRPi3/raw/master/fpcupdeluxe.tar.xz
wget https://github.com/tednilsen/LazarusRPi3/raw/master/fpcupdeluxe.ini
wget https://github.com/tednilsen/LazarusRPi3/raw/master/fpc.tar.xz.partaa
wget https://github.com/tednilsen/LazarusRPi3/raw/master/fpc.tar.xz.partab
wget https://github.com/tednilsen/LazarusRPi3/raw/master/fpcsrc.tar.xz.partaa
wget https://github.com/tednilsen/LazarusRPi3/raw/master/fpcsrc.tar.xz.partab
wget https://github.com/tednilsen/LazarusRPi3/raw/master/lazarus.tar.xz.partaa
wget https://github.com/tednilsen/LazarusRPi3/raw/master/lazarus.tar.xz.partab
wget https://github.com/tednilsen/LazarusRPi3/raw/master/lazarus.tar.xz.partac
wget https://github.com/tednilsen/LazarusRPi3/raw/master/lazarus.tar.xz.partad
wget https://github.com/tednilsen/LazarusRPi3/raw/master/lazarus.tar.xz.partae
# combine parts and delete leftover-parts
cat fpc.tar.xz.part* > fpc.tar.xz
rm fpc.tar.xz.part*
cat fpcsrc.tar.xz.part* > fpcsrc.tar.xz
rm fpcsrc.tar.xz.part*
cat lazarus.tar.xz.part* > lazarus.tar.xz
rm lazarus.tar.xz.part*
# grab extra files if needed
wget https://github.com/tednilsen/LazarusRPi3/raw/master/compress_all.sh
chmod +x compress_all.sh
# extract the folders
echo "Please hold on, extracting files..."
for f in *.tar.xz; do tar -xf "$f"; done
# create folders
mkdir -p tmp
mkdir -p projects
# ...all files extracted, now create a desktop shortcut for Lazarus.
cd
# if no folder named Desktop, create one
mkdir -p Desktop
cd Desktop
cat <<EOF >Lazarus.desktop
[Desktop Entry]
Name=Lazarus
Encoding=UTF-8
Type=Application
Terminal=false
Icon=/home/pi/Development/lazarus/images/icons/lazarus.ico
Exec=/home/pi/Development/lazarus/lazarus --pcp="/home/pi/Development/config_lazarus" %f
GenericName=Lazarus IDE with Free Pascal Compiler
Category=Application;IDE;Development;GUIDesigner;Programming;
Categories=Application;IDE;Development;GUIDesigner;Programming;
Keywords=editor;Pascal;IDE;FreePascal;fpc;Design;Designer;
EOF
chmod +x Lazarus.desktop
echo "All done, Lazarus is installed with a desktop-shortcut ...enjoy FPC and Lazarus on RPi3!"
exit 0