blob: 55cc0f83e47c61e50968f90057f2b94a5bceea0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
set -xeuo pipefail
IFS=$'\n\t'
package=$1
version=$2
git clone --branch="$version" --depth=1 --recursive "https://anongit.kde.org/$package" "/tmp/$package"
cd "/tmp/$package"
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=/usr
ninja && sudo ninja install
cd
rm -rf "/tmp/$package"
|