Skip to content

Commit 9b8c3ee

Browse files
committed
#137 build wtype from source, ingest international fixes from selkies
1 parent 13bb6ea commit 9b8c3ee

2 files changed

Lines changed: 62 additions & 6 deletions

File tree

Dockerfile

Lines changed: 31 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,34 @@ RUN \
4040
cp -ar dist/* /buildout/$DASH/; \
4141
done
4242

43+
FROM ghcr.io/linuxserver/baseimage-arch:latest AS wtype
44+
45+
RUN \
46+
echo "**** wtype build deps ****" && \
47+
pacman -Sy --noconfirm --needed \
48+
base-devel \
49+
cmake \
50+
git \
51+
libxkbcommon \
52+
meson \
53+
ninja \
54+
pkgconf \
55+
wayland
56+
57+
RUN \
58+
echo "**** build wtype ****" && \
59+
cd /tmp && \
60+
git clone \
61+
-b international-fix \
62+
--single-branch \
63+
--depth 1 https://github.com/thelamer/wtype.git && \
64+
cd wtype && \
65+
meson build && \
66+
ninja -C build && \
67+
mv \
68+
build/wtype \
69+
/usr/sbin/wtype
70+
4371
# Runtime stage
4472
FROM ghcr.io/linuxserver/baseimage-arch:latest
4573

@@ -136,7 +164,6 @@ RUN \
136164
wayland \
137165
wl-clipboard \
138166
wlr-randr \
139-
wtype \
140167
x264 \
141168
xclip \
142169
xcursor-themes \
@@ -184,7 +211,7 @@ RUN \
184211
echo "**** install selkies ****" && \
185212
curl -o \
186213
/tmp/selkies.tar.gz -L \
187-
"https://github.com/selkies-project/selkies/archive/85989133deb49f1303da8dae613adef4b4fe1afd.tar.gz" && \
214+
"https://github.com/selkies-project/selkies/archive/af1a1c252563d2f136d641b81d6b1dd38a3a0d93.tar.gz" && \
188215
cd /tmp && \
189216
tar xf selkies.tar.gz && \
190217
cd selkies-* && \
@@ -272,6 +299,7 @@ RUN \
272299
COPY /root /
273300
COPY --from=frontend /buildout /usr/share/selkies
274301
COPY --from=xvfb / /
302+
COPY --from=wtype /usr/sbin/wtype /usr/sbin/wtype
275303

276304
# ports and volumes
277305
EXPOSE 3000 3001

Dockerfile.aarch64

Lines changed: 31 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,34 @@ RUN \
4040
cp -ar dist/* /buildout/$DASH/; \
4141
done
4242

43+
FROM ghcr.io/linuxserver/baseimage-arch:arm64v8-latest AS wtype
44+
45+
RUN \
46+
echo "**** wtype build deps ****" && \
47+
pacman -Sy --noconfirm --needed \
48+
base-devel \
49+
cmake \
50+
git \
51+
libxkbcommon \
52+
meson \
53+
ninja \
54+
pkgconf \
55+
wayland
56+
57+
RUN \
58+
echo "**** build wtype ****" && \
59+
cd /tmp && \
60+
git clone \
61+
-b international-fix \
62+
--single-branch \
63+
--depth 1 https://github.com/thelamer/wtype.git && \
64+
cd wtype && \
65+
meson build && \
66+
ninja -C build && \
67+
mv \
68+
build/wtype \
69+
/usr/sbin/wtype
70+
4371
# Runtime stage
4472
FROM ghcr.io/linuxserver/baseimage-arch:arm64v8-latest
4573

@@ -135,7 +163,6 @@ RUN \
135163
wayland \
136164
wl-clipboard \
137165
wlr-randr \
138-
wtype \
139166
x264 \
140167
xclip \
141168
xcursor-themes \
@@ -181,7 +208,7 @@ RUN \
181208
echo "**** install selkies ****" && \
182209
curl -o \
183210
/tmp/selkies.tar.gz -L \
184-
"https://github.com/selkies-project/selkies/archive/85989133deb49f1303da8dae613adef4b4fe1afd.tar.gz" && \
211+
"https://github.com/selkies-project/selkies/archive/af1a1c252563d2f136d641b81d6b1dd38a3a0d93.tar.gz" && \
185212
cd /tmp && \
186213
tar xf selkies.tar.gz && \
187214
cd selkies-* && \
@@ -269,6 +296,7 @@ RUN \
269296
COPY /root /
270297
COPY --from=frontend /buildout /usr/share/selkies
271298
COPY --from=xvfb / /
299+
COPY --from=wtype /usr/sbin/wtype /usr/sbin/wtype
272300

273301
# ports and volumes
274302
EXPOSE 3000 3001

0 commit comments

Comments
 (0)