2024-09-14 04:24:00 +00:00
|
|
|
FROM debian:bookworm
|
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
2024-10-20 04:59:13 +00:00
|
|
|
apt-get install --no-install-recommends -qyy \
|
|
|
|
golang-go \
|
|
|
|
qtbase5-dev \
|
|
|
|
libqscintilla2-qt5-dev \
|
|
|
|
clang \
|
|
|
|
git \
|
|
|
|
ca-certificates \
|
|
|
|
pkg-config \
|
|
|
|
build-essential && \
|
|
|
|
apt-get clean
|
2024-10-20 05:02:08 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /usr/local/src/scintilla && \
|
|
|
|
git clone 'https://github.com/mirror/scintilla.git' /usr/local/src/scintilla && \
|
|
|
|
git -C /usr/local/src/scintilla checkout rel-5-5-2
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
cd /usr/local/src/scintilla/qt/ScintillaEditBase && \
|
|
|
|
qmake && \
|
|
|
|
make && \
|
|
|
|
cd /usr/local/src/scintilla/qt/ScintillaEdit && \
|
|
|
|
python3 WidgetGen.py && \
|
|
|
|
qmake && \
|
|
|
|
make
|
|
|
|
|
2024-10-20 04:59:13 +00:00
|
|
|
RUN mkdir -p /usr/local/lib/pkgconfig
|
2024-10-20 05:02:08 +00:00
|
|
|
|
2024-10-20 04:59:13 +00:00
|
|
|
COPY pkg-config/QScintilla.pc.example /usr/local/lib/pkgconfig/QScintilla.pc
|
2024-10-20 05:02:08 +00:00
|
|
|
COPY pkg-config/ScintillaEdit.pc.example /usr/local/lib/pkgconfig/ScintillaEdit.pc
|
|
|
|
|
2024-10-20 04:59:13 +00:00
|
|
|
ENV GOFLAGS=-buildvcs=false
|