2023-02-23 21:59:27 +03:00
|
|
|
distributable:
|
2023-10-02 03:41:57 +03:00
|
|
|
url: https://github.com/p7zip-project/p7zip/archive/v{{version.raw}}.tar.gz
|
|
|
|
strip-components: 1
|
2023-02-23 21:59:27 +03:00
|
|
|
|
|
|
|
versions:
|
2023-10-02 03:41:57 +03:00
|
|
|
github: p7zip-project/p7zip # reads github release *names*
|
2023-02-23 21:59:27 +03:00
|
|
|
strip: /^p7zip /
|
|
|
|
|
|
|
|
build:
|
2023-10-02 03:41:57 +03:00
|
|
|
script:
|
|
|
|
- run: mv makefile.macosx_llvm_64bits makefile.machine
|
|
|
|
if: darwin
|
|
|
|
- run: |
|
|
|
|
mv makefile.linux_any_cpu makefile.machine
|
|
|
|
sed -i.bak -e 's/-std=gnu/-fPIC -std=gnu/' \
|
|
|
|
C/makefile.glb \
|
|
|
|
CPP/7zip/CMAKE/CMakeLists.txt \
|
|
|
|
makefile.glb
|
|
|
|
rm C/makefile.glb.bak \
|
|
|
|
CPP/7zip/CMAKE/CMakeLists.txt.bak \
|
|
|
|
makefile.glb.bak
|
|
|
|
if: linux
|
2023-02-23 21:59:27 +03:00
|
|
|
|
2023-10-02 03:41:57 +03:00
|
|
|
- make --jobs {{ hw.concurrency }} all3
|
|
|
|
- make DEST_HOME={{prefix}} DEST_MAN={{prefix}}/man install
|
2023-02-23 21:59:27 +03:00
|
|
|
|
|
|
|
# relocatability
|
2023-10-02 03:41:57 +03:00
|
|
|
- run: |
|
|
|
|
for x in *; do
|
|
|
|
echo "#!/bin/sh" > $x
|
|
|
|
echo 'd="$(cd "$(dirname "$0")/.." && pwd)"' >> $x
|
|
|
|
echo "exec \"\$d\"/lib/p7zip/$x \"\$@\"" >> $x
|
|
|
|
done
|
|
|
|
working-directory: ${{prefix}}/bin
|
2023-02-23 21:59:27 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/7z
|
|
|
|
- bin/7za
|
|
|
|
- bin/7zr
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
7z a -t7z foo.7z $FIXTURE
|
|
|
|
7z e foo.7z -oout
|
|
|
|
test "hello world!" = "$(cat out/*)"
|
2023-10-02 03:41:57 +03:00
|
|
|
fixture: hello world!
|