Skip to content

Commit

Permalink
update unrar
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed May 19, 2024
1 parent 2e156bd commit 6d6b6b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion linux-amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG UPSTREAM_IMAGE
ARG UPSTREAM_DIGEST_AMD64

FROM ubuntu AS builder
ARG UNRAR_VER=7.0.7
ARG UNRAR_VER=7.0.9
ADD https://www.rarlab.com/rar/unrarsrc-${UNRAR_VER}.tar.gz /tmp/unrar.tar.gz
RUN apt update && \
apt install -y --no-install-recommends --no-install-suggests build-essential && \
Expand Down
4 changes: 2 additions & 2 deletions linux-arm64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ ARG UPSTREAM_IMAGE
ARG UPSTREAM_DIGEST_ARM64

FROM ubuntu AS builder
ARG UNRAR_VER=7.0.7
ARG UNRAR_VER=7.0.9
ADD https://www.rarlab.com/rar/unrarsrc-${UNRAR_VER}.tar.gz /tmp/unrar.tar.gz
RUN apt update && \
apt install -y --no-install-recommends --no-install-suggests build-essential && \
tar -xzf /tmp/unrar.tar.gz && \
cd unrar && \
sed -i 's|LDFLAGS=-pthread|LDFLAGS=-pthread -static|' makefile && \
sed -i 's|CXXFLAGS=-march=native|CXXFLAGS=-march=armv8-a|' makefile && \
sed -i 's|CXXFLAGS=-march=native|CXXFLAGS=-march=armv8-a+crypto+crc|' makefile && \
make -f makefile && \
install -Dm 755 unrar /usr/bin/unrar

Expand Down

0 comments on commit 6d6b6b4

Please sign in to comment.