Skip to content

Commit

Permalink
Support for p7zip
Browse files Browse the repository at this point in the history
Based on andrew-d/static-binaries#23 suggestion
  • Loading branch information
vk496 committed Feb 7, 2020
1 parent 44d364f commit a3f2240
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Static binaries for common tools
| nano | 4.7 | nano | [.tar.xz](https://www.nano-editor.org/dist/v4/nano-${VERSION}.tar.xz) |
| squashfs | 4.4 | mksquashfs | [.tar.gz](https://github.com/plougher/squashfs-tools/archive/${VERSION}.tar.gz) |
| wget | 1.20.3 | wget | [.tar.gz](https://ftp.gnu.org/gnu/wget/wget-${VERSION}.tar.gz) |
| p7zip | 16.02 | 7za | [.tar.gz](https://github.com/btolab/p7zip/archive/${VERSION}.tar.gz) |

# Build
If you want to build the binaries by yourself, just execute:
Expand Down
14 changes: 14 additions & 0 deletions build/software/p7zip/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM localhost:5000/buildsystem

ARG SOURCE

RUN curl -LO $SOURCE

RUN set -ex; \
tar xvf *; \
cd */; \
LDFLAGS="-static" \
make 7za 7zr sfx -j$(nproc --all); \
strip bin/7za bin/7zr bin/7zCon.sfx; \
cp bin/7za bin/7zr bin/7zCon.sfx /out/; \
rm -Rf $WORKDIR/*
1 change: 1 addition & 0 deletions build/software/p7zip/info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION="| head -2 | grep -i copyright | cut -d: -f1 | cut -d" " -f4"

0 comments on commit a3f2240

Please sign in to comment.