Skip to content

Commit d4052db

Browse files
committed
#137 build wtype from source, ingest international fixes from selkies
1 parent 5267739 commit d4052db

2 files changed

Lines changed: 64 additions & 6 deletions

File tree

Dockerfile

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN \
1616
https://github.com/selkies-project/selkies.git \
1717
/src && \
1818
cd /src && \
19-
git checkout -f 85989133deb49f1303da8dae613adef4b4fe1afd
19+
git checkout -f af1a1c252563d2f136d641b81d6b1dd38a3a0d93
2020

2121
RUN \
2222
echo "**** build shared core library ****" && \
@@ -40,6 +40,35 @@ RUN \
4040
cp -ar dist/* /buildout/$DASH/; \
4141
done
4242

43+
FROM ghcr.io/linuxserver/baseimage-debian:trixie AS wtype
44+
45+
RUN \
46+
echo "**** wtype build deps ****" && \
47+
apt-get update && \
48+
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
49+
build-essential \
50+
cmake \
51+
git \
52+
libwayland-dev \
53+
libxkbcommon-dev \
54+
meson \
55+
ninja-build \
56+
pkg-config
57+
58+
RUN \
59+
echo "**** build wtype ****" && \
60+
cd /tmp && \
61+
git clone \
62+
-b international-fix \
63+
--single-branch \
64+
--depth 1 https://github.com/thelamer/wtype.git && \
65+
cd wtype && \
66+
meson build && \
67+
ninja -C build && \
68+
mv \
69+
build/wtype \
70+
/usr/bin/wtype
71+
4372
# Runtime stage
4473
FROM ghcr.io/linuxserver/baseimage-debian:trixie
4574

@@ -167,7 +196,6 @@ RUN \
167196
vulkan-tools \
168197
wl-clipboard \
169198
wlr-randr \
170-
wtype \
171199
x11-apps \
172200
x11-common \
173201
x11-utils \
@@ -199,7 +227,7 @@ RUN \
199227
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
200228
curl -o \
201229
/tmp/selkies.tar.gz -L \
202-
"https://github.com/selkies-project/selkies/archive/85989133deb49f1303da8dae613adef4b4fe1afd.tar.gz" && \
230+
"https://github.com/selkies-project/selkies/archive/af1a1c252563d2f136d641b81d6b1dd38a3a0d93.tar.gz" && \
203231
cd /tmp && \
204232
tar xf selkies.tar.gz && \
205233
cd selkies-* && \
@@ -292,6 +320,7 @@ RUN \
292320
COPY /root /
293321
COPY --from=frontend /buildout /usr/share/selkies
294322
COPY --from=xvfb / /
323+
COPY --from=wtype /usr/bin/wtype /usr/bin/wtype
295324

296325
# ports and volumes
297326
EXPOSE 3000 3001

Dockerfile.aarch64

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN \
1616
https://github.com/selkies-project/selkies.git \
1717
/src && \
1818
cd /src && \
19-
git checkout -f 85989133deb49f1303da8dae613adef4b4fe1afd
19+
git checkout -f af1a1c252563d2f136d641b81d6b1dd38a3a0d93
2020

2121
RUN \
2222
echo "**** build shared core library ****" && \
@@ -40,6 +40,35 @@ RUN \
4040
cp -ar dist/* /buildout/$DASH/; \
4141
done
4242

43+
FROM ghcr.io/linuxserver/baseimage-debian:arm64v8-trixie AS wtype
44+
45+
RUN \
46+
echo "**** wtype build deps ****" && \
47+
apt-get update && \
48+
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
49+
build-essential \
50+
cmake \
51+
git \
52+
libwayland-dev \
53+
libxkbcommon-dev \
54+
meson \
55+
ninja-build \
56+
pkg-config
57+
58+
RUN \
59+
echo "**** build wtype ****" && \
60+
cd /tmp && \
61+
git clone \
62+
-b international-fix \
63+
--single-branch \
64+
--depth 1 https://github.com/thelamer/wtype.git && \
65+
cd wtype && \
66+
meson build && \
67+
ninja -C build && \
68+
mv \
69+
build/wtype \
70+
/usr/bin/wtype
71+
4372
# Runtime stage
4473
FROM ghcr.io/linuxserver/baseimage-debian:arm64v8-trixie
4574

@@ -166,7 +195,6 @@ RUN \
166195
vulkan-tools \
167196
wl-clipboard \
168197
wlr-randr \
169-
wtype \
170198
x11-apps \
171199
x11-common \
172200
x11-utils \
@@ -197,7 +225,7 @@ RUN \
197225
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
198226
curl -o \
199227
/tmp/selkies.tar.gz -L \
200-
"https://github.com/selkies-project/selkies/archive/85989133deb49f1303da8dae613adef4b4fe1afd.tar.gz" && \
228+
"https://github.com/selkies-project/selkies/archive/af1a1c252563d2f136d641b81d6b1dd38a3a0d93.tar.gz" && \
201229
cd /tmp && \
202230
tar xf selkies.tar.gz && \
203231
cd selkies-* && \
@@ -290,6 +318,7 @@ RUN \
290318
COPY /root /
291319
COPY --from=frontend /buildout /usr/share/selkies
292320
COPY --from=xvfb / /
321+
COPY --from=wtype /usr/bin/wtype /usr/bin/wtype
293322

294323
# ports and volumes
295324
EXPOSE 3000 3001

0 commit comments

Comments
 (0)