Add Telescope-0.8.1

This commit is contained in:
Xavier Del Campo Romero 2023-12-21 23:18:37 +01:00
parent 8e5defaf4b
commit 8c104a497d
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
FROM alpine
RUN apk update && apk add \
autoconf \
automake \
gettext \
pkgconfig \
make \
gcc \
musl-dev \
wget
COPY --from=libopenssl:3.1.1-minimal /opt/spm/openssl-3.1.1/ /usr/local/
COPY --from=liblibretls:3.8.1 /opt/spm/libretls-3.8.1/ /usr/local/
COPY --from=libevent:2.1.12 /opt/spm/libevent-2.1.12/ /usr/local/
COPY --from=libncurses:6.3 /opt/spm/ncurses-6.3/ /usr/local/
COPY --from=libbison:3.8.2 /opt/spm/bison-3.8.2/ /usr/local/
RUN wget https://codeberg.org/op/telescope/archive/0.8.1.tar.gz
RUN tar -xf 0.8.1.tar.gz
WORKDIR /telescope
ARG PREFIX=/opt/spm/telescope-0.8.1
RUN ./autogen.sh
RUN ./configure \
--prefix=$PREFIX \
CFLAGS='-ffunction-sections -fdata-sections -Os' \
LDFLAGS="-Wl,--gc-sections -static" \
LIBS="-lssl -lcrypto"
RUN make -j$(nproc --all)
RUN make install
RUN strip $PREFIX/bin/telescope