Skip to content

Commit d1b7205

Browse files
niebertvdellamea
authored andcommitted
Add install scripts
Co-authored-by: vdellamea <75564007+vdellamea@users.noreply.github.com>
1 parent 5bdb7e8 commit d1b7205

File tree

3 files changed

+237
-0
lines changed

3 files changed

+237
-0
lines changed

linuxBuild/install4debian.sh

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
#!/bin/sh
2+
3+
# created by niebert and vdellamea
4+
# set DISTRO either to "Ubuntu", "Debian" or "Fedora"
5+
DISTRO="Debian"
6+
LINVERSION="0.0"
7+
8+
# Get Jamulus Release Name with "curl" and "grep"
9+
R=`curl -s https://api.github.com/repos/jamulussoftware/jamulus/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'`
10+
echo "Jamulus Installation Script for $DISTRO $LINVERSION"
11+
echo "Release: $R"
12+
INSTALLJAMULUS="no"
13+
while true; do
14+
read -p "Do you wish to install Jamulus on $DISTRO $LINVERSION? (y/n) " yn
15+
case $yn in
16+
[Yy]* )
17+
echo "Start Installation $DISTRO $LINVERSION"
18+
echo "(1) Fetch Release $R from GitHub"
19+
wget https://github.com/jamulussoftware/jamulus/archive/$R.tar.gz
20+
echo "(2) Extract Source Code for Jamulus Release $R from GitHub"
21+
tar -xvf $R.tar.gz
22+
echo "(3) Delete ${R}.tar.gz from GitHub"
23+
rm $R.tar.gz
24+
echo "(4) Update Repository"
25+
sudo apt-get update
26+
INSTALLJAMULUS="yes"
27+
break;;
28+
[Nn]* )
29+
echo "Cancelled Jamulus Installation on $DISTRO $LINVERSION"
30+
exit;;
31+
* ) echo "Please answer yes or no.";;
32+
esac
33+
done
34+
35+
# echo "Check Variable: $INSTALLJAMULUS"
36+
37+
if [ "$INSTALLJAMULUS" = "yes" ]; then
38+
echo "(5) Install Build Essentials for $DISTRO"
39+
40+
if [ "$DISTRO" = "Ubuntu" ]
41+
then
42+
echo "Installation for $DISTRO"
43+
sudo apt-get install cmake qmake gcc g++
44+
sudo apt-get install build-essential qt5-qmake qtdeclarative5-dev qt5-default qttools5-dev-tools libjack-jackd2-dev
45+
sudo apt-get install qjackctl
46+
if [ "$LINVERSION" = "18.4" ]
47+
then
48+
echo "Perform Installation Specifics for $DISTRO Version $DISTRO"
49+
fi
50+
51+
elif [ "$DISTRO" = "Debian" ]
52+
then
53+
sudo apt-get install build-essential qtdeclarative5-dev qt5-default qttools5-dev-tools libjack-jackd2-dev
54+
sudo apt-get install qjackctl
55+
elif [ "$DISTRO" = "Fedora" ]
56+
then
57+
sudo dnf install qt5-qtdeclarative-devel jack-audio-connection-kit-dbus jack-audio-connection-kit-devel
58+
sudo dnf install qjackctl
59+
fi
60+
61+
echo "(6) Compile Jamulus $R"
62+
echo "Change to Directory jamulus-$R"
63+
cd "jamulus-$R"
64+
# ls
65+
qmake Jamulus.pro
66+
make clean
67+
make
68+
sudo make install
69+
echo "Compilation DONE"
70+
cd ..
71+
echo "(6) Delete the Source Files after Installation"
72+
rm -R "jamulus-$R"
73+
74+
else
75+
76+
echo "Installation cancelled"
77+
78+
fi
79+

linuxBuild/install4fedora.sh

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
#!/bin/sh
2+
3+
# created by niebert and vdellamea
4+
# set DISTRO either to "Ubuntu", "Debian" or "Fedora"
5+
DISTRO="Fedora"
6+
LINVERSION="18.04"
7+
8+
# Get Jamulus Release Name with "curl" and "grep"
9+
R=`curl -s https://api.github.com/repos/jamulussoftware/jamulus/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'`
10+
echo "Jamulus Installation Script for $DISTRO $LINVERSION"
11+
echo "Release: $R"
12+
INSTALLJAMULUS="no"
13+
while true; do
14+
read -p "Do you wish to install Jamulus on $DISTRO $LINVERSION? (y/n) " yn
15+
case $yn in
16+
[Yy]* )
17+
echo "Start Installation $DISTRO $LINVERSION"
18+
echo "(1) Fetch Release $R from GitHub"
19+
wget https://github.com/jamulussoftware/jamulus/archive/$R.tar.gz
20+
echo "(2) Extract Source Code for Jamulus Release $R from GitHub"
21+
tar -xvf $R.tar.gz
22+
echo "(3) Delete ${R}.tar.gz from GitHub"
23+
rm $R.tar.gz
24+
echo "(4) Update Repository"
25+
sudo apt-get update
26+
INSTALLJAMULUS="yes"
27+
break;;
28+
[Nn]* )
29+
echo "Cancelled Jamulus Installation on $DISTRO $LINVERSION"
30+
exit;;
31+
* ) echo "Please answer yes or no.";;
32+
esac
33+
done
34+
35+
# echo "Check Variable: $INSTALLJAMULUS"
36+
37+
if [ "$INSTALLJAMULUS" = "yes" ]; then
38+
echo "(5) Install Build Essentials for $DISTRO"
39+
40+
if [ "$DISTRO" = "Ubuntu" ]
41+
then
42+
echo "Installation for $DISTRO"
43+
sudo apt-get install cmake qmake gcc g++
44+
sudo apt-get install build-essential qt5-qmake qtdeclarative5-dev qt5-default qttools5-dev-tools libjack-jackd2-dev
45+
sudo apt-get install qjackctl
46+
if [ "$LINVERSION" = "18.4" ]
47+
then
48+
echo "Perform Installation Specifics for $DISTRO Version $DISTRO"
49+
fi
50+
51+
elif [ "$DISTRO" = "Debian" ]
52+
then
53+
sudo apt-get install build-essential qtdeclarative5-dev qt5-default qttools5-dev-tools libjack-jackd2-dev
54+
sudo apt-get install qjackctl
55+
elif [ "$DISTRO" = "Fedora" ]
56+
then
57+
sudo dnf install qt5-qtdeclarative-devel jack-audio-connection-kit-dbus jack-audio-connection-kit-devel
58+
sudo dnf install qjackctl
59+
fi
60+
61+
echo "(6) Compile Jamulus $R"
62+
echo "Change to Directory jamulus-$R"
63+
cd "jamulus-$R"
64+
# ls
65+
qmake Jamulus.pro
66+
make clean
67+
make
68+
sudo make install
69+
echo "Compilation DONE"
70+
cd ..
71+
echo "(6) Delete the Source Files after Installation"
72+
rm -R "jamulus-$R"
73+
74+
else
75+
76+
echo "Installation cancelled"
77+
78+
fi
79+

linuxBuild/install4ubuntu.sh

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
#!/bin/sh
2+
3+
# created by niebert and vdellamea
4+
# set DISTRO either to "Ubuntu", "Debian" or "Fedora"
5+
DISTRO="Ubuntu"
6+
LINVERSION="18.04"
7+
8+
# Get Jamulus Release Name with "curl" and "grep"
9+
R=`curl -s https://api.github.com/repos/jamulussoftware/jamulus/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'`
10+
echo "Jamulus Installation Script for $DISTRO $LINVERSION"
11+
echo "Release: $R"
12+
INSTALLJAMULUS="no"
13+
while true; do
14+
read -p "Do you wish to install Jamulus on $DISTRO $LINVERSION? (y/n) " yn
15+
case $yn in
16+
[Yy]* )
17+
echo "Start Installation $DISTRO $LINVERSION"
18+
echo "(1) Fetch Release $R from GitHub"
19+
wget https://github.com/jamulussoftware/jamulus/archive/$R.tar.gz
20+
echo "(2) Extract Source Code for Jamulus Release $R from GitHub"
21+
tar -xvf $R.tar.gz
22+
echo "(3) Delete ${R}.tar.gz from GitHub"
23+
rm $R.tar.gz
24+
echo "(4) Update Repository"
25+
sudo apt-get update
26+
INSTALLJAMULUS="yes"
27+
break;;
28+
[Nn]* )
29+
echo "Cancelled Jamulus Installation on $DISTRO $LINVERSION"
30+
exit;;
31+
* ) echo "Please answer yes or no.";;
32+
esac
33+
done
34+
35+
# echo "Check Variable: $INSTALLJAMULUS"
36+
37+
if [ "$INSTALLJAMULUS" = "yes" ]; then
38+
echo "(5) Install Build Essentials for $DISTRO"
39+
40+
if [ "$DISTRO" = "Ubuntu" ]
41+
then
42+
echo "Installation for $DISTRO"
43+
sudo apt-get install cmake qmake gcc g++
44+
sudo apt-get install build-essential qt5-qmake qtdeclarative5-dev qt5-default qttools5-dev-tools libjack-jackd2-dev
45+
sudo apt-get install qjackctl
46+
if [ "$LINVERSION" = "18.4" ]
47+
then
48+
echo "Perform Installation Specifics for $DISTRO Version $DISTRO"
49+
fi
50+
51+
elif [ "$DISTRO" = "Debian" ]
52+
then
53+
sudo apt-get install build-essential qtdeclarative5-dev qt5-default qttools5-dev-tools libjack-jackd2-dev
54+
sudo apt-get install qjackctl
55+
elif [ "$DISTRO" = "Fedora" ]
56+
then
57+
sudo dnf install qt5-qtdeclarative-devel jack-audio-connection-kit-dbus jack-audio-connection-kit-devel
58+
sudo dnf install qjackctl
59+
fi
60+
61+
echo "(6) Compile Jamulus $R"
62+
echo "Change to Directory jamulus-$R"
63+
cd "jamulus-$R"
64+
# ls
65+
qmake Jamulus.pro
66+
make clean
67+
make
68+
sudo make install
69+
echo "Compilation DONE"
70+
cd ..
71+
echo "(6) Delete the Source Files after Installation"
72+
rm -R "jamulus-$R"
73+
74+
else
75+
76+
echo "Installation cancelled"
77+
78+
fi
79+

0 commit comments

Comments
 (0)