| 1 |
#!/usr/bin/env bash |
| 2 |
|
| 3 |
set -euo pipefail |
| 4 |
set -x |
| 5 |
|
| 6 |
separator() { |
| 7 |
echo -e "\n\n\n\n\n" |
| 8 |
} |
| 9 |
|
| 10 |
# base |
| 11 |
cd /etc/yum.repos.d/ |
| 12 |
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* |
| 13 |
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* |
| 14 |
yum update -y |
| 15 |
yum groupinstall -y 'Development Tools' |
| 16 |
|
| 17 |
# dependencies |
| 18 |
yum install -y \ |
| 19 |
desktop-file-utils \ |
| 20 |
gettext \ |
| 21 |
gtk2-devel\ |
| 22 |
gtk3-devel \ |
| 23 |
libXtst-devel \ |
| 24 |
qt5-qtbase-devel \ |
| 25 |
qt5-qtbase-private-devel \ |
| 26 |
|
| 27 |
|
| 28 |
set +x; separator; separator; separator; set -x |
| 29 |
|
| 30 |
# enter GitHub workspace directory path |
| 31 |
cd "$GITHUB_WORKSPACE" |
| 32 |
|
| 33 |
autoreconf -i |
| 34 |
./configure \ |
| 35 |
--disable-qt6-immodule \ |
| 36 |
--prefix="$PWD/build" \ |
| 37 |
--with-qt5-im-module-path=/usr/lib/qt/plugins/platforminputcontexts/ |
| 38 |
|
| 39 |
make |