Skip to content

Commit

Permalink
add specific version of kf5 to appimage
Browse files Browse the repository at this point in the history
  • Loading branch information
lievenhey committed Oct 5, 2023
1 parent 9c78e68 commit a7e674a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/appimage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
FROM centos/devtoolset-7-toolchain-centos7 as intermediate

ARG QT_VERSION=5.15.7
ARG KF5_VERSION v5.110.0
ARG KDDockWidgets_VERSION=1.6
ARG QCustomPlot_VERSION=2.1.1
ARG rust_demangler_VERSION=0.1.21
Expand Down Expand Up @@ -96,14 +97,21 @@ RUN cd /opt && mkdir dlang && cd dlang && \
make && mv libd_demangle.so /usr/lib/ && \
deactivate && cd /opt && rm -Rf dlang && mv /usr/bin/gpg{~,} && mv /usr/bin/gpg2{~,}

# kdesrc-build dependencies
RUN yum install -y libcanberra-devel && \
cpan YAML::Syck

# kde frameworks
RUN cd /opt && git clone https://invent.kde.org/sdk/kdesrc-build.git && \
# everything after this commit requires a dbus session
cd kdesrc-build && git checkout 6c2c8a83ee25d53bdae91dce4ab3efaaac838a11
COPY kdesrc-buildrc /opt/kdesrc-build/
COPY kf5-frameworks-build-include /opt/kdesrc-build/
RUN ldconfig && \
cd /opt/kdesrc-build && sed -i -e "s/FULL_NPROC/$(nproc)/g" -e "s/HALF_NPROC/$(($(nproc)/2))/g" kdesrc-buildrc && \
cpan YAML::Syck && \
cd /opt/kdesrc-build && \
sed -i -e "s/FULL_NPROC/$(nproc)/g" -e "s/HALF_NPROC/$(($(nproc)/2))/g" kdesrc-buildrc && \
sed -i -e "s/%VERSION%/${KF5_VERSION}/g" kdesrc-buildrc && \
sed -i -e "s/%VERSION%/${KF5_VERSION}/g" kf5-frameworks-build-include && \
./kdesrc-build --metadata-only && \
# fix compile error in kwallet
./kdesrc-build --include-dependencies qca && \
Expand Down
4 changes: 4 additions & 0 deletions scripts/appimage/kdesrc-buildrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ end options
options sonnet
cmake-options -DSONNET_USE_QML=OFF
end options

options extra-cmake-modules
tag %VERSION%
end options
37 changes: 37 additions & 0 deletions scripts/appimage/kf5-frameworks-build-include
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# kdesrc-build itself, and some "kdesupport" modules needed by KF5, workspace or apps.
module-set kf5-build-support
repository kde-projects
use-modules kdesrc-build kde-dev-scripts extra-cmake-modules polkit-qt-1 qca
end module-set

module-set phonon
repository kde-projects
use-modules phonon phonon-vlc
end module-set

options phonon
cmake-options -DPHONON_BUILD_QT5=ON -DPHONON_BUILD_QT6=OFF
end options

module-set kdesupport
repository kde-projects
use-modules kdesupport/plasma-wayland-protocols
end module-set

# ============================= KDE Frameworks ========================

module-set frameworks
repository kde-projects
use-modules frameworks

tag %VERSION%
branch kf5
ignore-modules kdewebkit
end module-set

module grantlee
repository https://github.com/steveire/grantlee.git
branch master
end module

include kf5-common-options-build-include

0 comments on commit a7e674a

Please sign in to comment.