diff --git a/docker/alpine-static/Dockerfile b/docker/alpine-static/Dockerfile index 8c01e168..68f9e492 100644 --- a/docker/alpine-static/Dockerfile +++ b/docker/alpine-static/Dockerfile @@ -9,6 +9,7 @@ FROM alpine:edge # prepare system RUN apk update && apk add git meson gcc g++ cmake pkgconfig +RUN cd /etc/apk && echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> repositories # install # [*] install libraries @@ -29,6 +30,7 @@ RUN cd /root && apk add \ ncurses-static \ openssl1.1-compat-dev \ openssl1.1-compat-libs-static \ + quickjs-dev \ sqlite-dev \ sqlite-static \ zlib-dev \ @@ -37,6 +39,17 @@ RUN cd /root && apk add \ xz-dev \ xz-static +# [*] libxml++5 +RUN cd /root && apk add mm-common libtool autoconf automake make xz + +# libxml++5 cd +RUN mkdir /root/tmp; cd /root/tmp; \ +wget https://github.com/libxmlplusplus/libxmlplusplus/releases/download/5.0.2/libxml++-5.0.2.tar.xz; \ +tar -xf libxml++-5.0.2.tar.xz; +ADD build_xmlplusplus.sh /root/tmp/libxml++-5.0.2/build_xmlplusplus.sh +RUN cd /root/tmp/libxml++-5.0.2; \ +./build_xmlplusplus.sh + ## [*] elinks sources # get elinks source RUN cd /root; git clone https://github.com/rkd77/elinks @@ -46,3 +59,7 @@ RUN cd /root; git clone https://github.com/rkd77/elinks ADD mes_static.sh /root/elinks/mes_static.sh RUN cd /root/elinks; \ ./mes_static.sh; + +ADD mes_static_js.sh /root/elinks/mes_static_js.sh +RUN cd /root/elinks; \ +./mes_static_js.sh; diff --git a/docker/alpine-static/build_xmlplusplus.sh b/docker/alpine-static/build_xmlplusplus.sh new file mode 100755 index 00000000..720db64f --- /dev/null +++ b/docker/alpine-static/build_xmlplusplus.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +NOCONFIGURE=1 ./autogen.sh + +./configure \ +--enable-static=yes \ +--enable-shared=no \ +--disable-documentation + +make -j12 + +make install diff --git a/docker/alpine-static/mes_static_js.sh b/docker/alpine-static/mes_static_js.sh new file mode 100755 index 00000000..08efc73e --- /dev/null +++ b/docker/alpine-static/mes_static_js.sh @@ -0,0 +1,54 @@ +#!/bin/sh + +rm -rf /tmp/builddir_js + +meson /tmp/builddir_js \ +-D88-colors=true \ +-D256-colors=true \ +-Dbacktrace=false \ +-Dbittorrent=true \ +-Dbrotli=true \ +-Dbzlib=true \ +-Dcgi=true \ +-Dcss=true \ +-Dcombining=false \ +-Ddgi=true \ +-Dexmode=true \ +-Dfastmem=true \ +-Dfsp=false \ +-Dgemini=true \ +-Dgettext=false \ +-Dgnutls=false \ +-Dgopher=true \ +-Dgpm=false \ +-Dguile=false \ +-Didn=true \ +-Dipv6=true \ +-Dlibev=false \ +-Dlibevent=true \ +-Dluapkg='luajit' \ +-Dlzma=true \ +-Dmailcap=true \ +-Dmouse=true \ +-Dnls=true \ +-Dnntp=true \ +-Dopenssl=true \ +-Dperl=false \ +-Dpython=false \ +-Dquickjs=true \ +-Druby=false \ +-Dsm-scripting=false \ +-Dspidermonkey=false \ +-Dstatic=true \ +-Dterminfo=false \ +-Dtest=false \ +-Dtre=false \ +-Dtrue-color=true \ +-Dutf-8=true \ +-Dwithdebug=false \ +-Dx=false \ +-Dxbel=true \ +-Dzlib=true \ +-Dzstd=true + +meson compile -C /tmp/builddir_js