1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[docker] build file for js version

This commit is contained in:
Witold Filipczyk 2022-12-01 18:03:29 +01:00
parent 6adcaadd62
commit 6708d1d843
3 changed files with 83 additions and 0 deletions

View File

@ -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;

View File

@ -0,0 +1,12 @@
#!/bin/sh
NOCONFIGURE=1 ./autogen.sh
./configure \
--enable-static=yes \
--enable-shared=no \
--disable-documentation
make -j12
make install

View File

@ -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