blob: a9b336afec6bd0d26c5e438bee67959f74c1eaf1 (
plain)
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
|
#!/bin/bash
# Initial check.
if [ -z "$KF5" ]; then
echo "You have to set the \$KF5 environment variable."
exit 1
fi
# Create the $KF5 directory if it doesn't exist yet.
mkdir -p $KF5
##
# CMake stuff.
# Getting CMake from git.
if [ ! -d cmake ]; then
git clone git://cmake.org/cmake.git
cd cmake
./configure --prefix=$KF5
make -j 10 install
cd ..
fi
# Extra CMake Modules (ECM)
if [ ! -d extra-cmake-modules ]; then
git clone git://anongit.kde.org/extra-cmake-modules
cd extra-cmake-modules
cmake -DCMAKE_INSTALL_PREFIX=$KF5 .
make install
cd ..
fi
##
# Qt5-based dependencies.
# Phonon
if [ -d phonon ]; then
cd phonon && git down && cd ..
else
git clone kde:phonon --branch master
fi
mkdir -p phonon/build
cd phonon/build
cmake -DCMAKE_INSTALL_PREFIX=$KF5 -DPHONON_BUILD_PHONON4QT5=ON ..
make -j 10 install
cd ../..
# libdbusmenu-qt
if [ -d libdbusmenu-qt ]; then
cd phonon && git down && cd ..
else
bzr branch lp:libdbusmenu-qt
fi
mkdir -p libdbusmenu-qt/build
cd libdbusmenu-qt/build
cmake -DCMAKE_INSTALL_PREFIX=$KF5 -DWITH_DOC:bool=OFF ..
make -j 10 install
cd ../..
##
# The rest of the packages.
for pkg in $(cat list); do
# Clone or pull.
if [ -d $pkg ]; then
cd $pkg
git down
mkdir -p build && cd build
else
git clone git://anongit.kde.org/$pkg
mkdir -p $pkg/build
cd $pkg/build
fi
# Compile and install.
cmake .. -DCMAKE_INSTALL_PREFIX=$KF5
make -j 10 install
cd ../..
done
|