-
Notifications
You must be signed in to change notification settings - Fork 1
/
installDependenciesArchlinux
executable file
·81 lines (72 loc) · 1.99 KB
/
installDependenciesArchlinux
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
#!/bin/sh
set -e
WORKDIR=$(pwd)
echo "Installing basic build tools"
sudo pacman -S --noconfirm git make binutils gcc pkg-config fakeroot
if [ "$(which yaourt)" == "" ]
then
echo "Installing yaourt to fetch some packages from AUR"
cd /tmp
git clone https://aur.archlinux.org/package-query.git
cd package-query
makepkg -si --noconfirm
cd ..
git clone https://aur.archlinux.org/yaourt.git
cd yaourt
makepkg -si --noconfirm
cd ${WORKDIR}
yaourt -Syy
fi
# Fix glib2 build
export PYTHONPATH="/usr/share/glib-2.0"
echo "Fetching necessary files to build perl modules for Slic3r"
yaourt -S --noconfirm gtk2 \
wxgtk2 \
perl-module-build \
perl-net-dbus \
perl-extutils-cppguess \
perl-extutils-xspp \
perl-devel-checklib \
perl-wx-constructors \
expat \
cpanminus \
libxmu \
freeglut \
curl \
boost \
bison \
flex \
patch \
python-codegen \
python2-codegen
CPAN=$(find / -name cpanm 2> /dev/null |head -n1)
sudo ${CPAN} Boost::Geometry::Utils \
local::lib \
Math::Clipper \
Math::ConvexHull \
Math::ConvexHull::MonotoneChain \
Math::Geometry::Voronoi \
Math::PlanePath \
Moo
if [ -f /.dockerenv ]
then
WX_BUILD_OPTION="--notest"
else
WX_BUILD_OPTION=""
fi
sudo ${CPAN} ${WX_BUILD_OPTION} Wx
if [ ! -d Slic3r ]
then
echo "Downloading Slic3r sources"
git clone https://github.com/alexrj/Slic3r.git
cd Slic3r
git checkout -b origin/master
else
echo "Using Slic3r local sources"
cd Slic3r
fi
echo "Building Slic3r.."
export PATH=/usr/bin/vendor_perl:$PATH
perl Build.PL
perl Build.PL --gui
cd ..