| 1 |
FROM quay.io/fedora/fedora:41 |
| 2 |
|
| 3 |
RUN dnf -y upgrade && \ |
| 4 |
dnf -y install devscripts git meson ninja-build pkgconfig qt5-qtbase-devel kf5-syntax-highlighting-devel |
| 5 |
|
| 6 |
# build lib termpaint |
| 7 |
RUN git clone https://github.com/termpaint/termpaint && \ |
| 8 |
cd termpaint && \ |
| 9 |
meson setup _build -Dprefix=$HOME/ && \ |
| 10 |
meson compile -C _build && \ |
| 11 |
meson install -C _build && \ |
| 12 |
cd .. |
| 13 |
|
| 14 |
# build lib tuiwidgets |
| 15 |
RUN git clone https://github.com/tuiwidgets/tuiwidgets && \ |
| 16 |
cd tuiwidgets && \ |
| 17 |
PKG_CONFIG_PATH=$HOME/lib64/pkgconfig meson setup _build -Dprefix=$HOME/ -Drpath=$HOME/lib64 && \ |
| 18 |
meson compile -C _build && \ |
| 19 |
meson install -C _build && \ |
| 20 |
cd .. |
| 21 |
|
| 22 |
# build editor chr |
| 23 |
RUN git clone https://github.com/chr-editor/chr && \ |
| 24 |
cd editor && \ |
| 25 |
PKG_CONFIG_PATH=$HOME/lib64/pkgconfig meson setup _build -Dsyntax_highlighting=true -Drpath=$HOME/lib64 && \ |
| 26 |
meson compile -C _build && \ |
| 27 |
meson install -C _build && \ |
| 28 |
cd .. |
| 29 |
|
| 30 |
RUN find / | grep chr |
| 31 |
|
| 32 |
# debug info |
| 33 |
RUN chr -v && \ |
| 34 |
chr -h |
| 35 |
|