From 93a354611e38a6949add5c2e5ccc93ef79b9755f Mon Sep 17 00:00:00 2001 From: Woodpecker CI Date: Tue, 3 Jun 2025 14:32:36 +0000 Subject: Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI] --- p7zip/.checksum | 2 ++ p7zip/.files | 20 ++++++++++++++++++++ p7zip/abuild | 14 ++++++++++++++ p7zip/fix-uintxx_t-redefined.patch | 23 +++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 p7zip/.checksum create mode 100644 p7zip/.files create mode 100644 p7zip/abuild create mode 100644 p7zip/fix-uintxx_t-redefined.patch (limited to 'p7zip') diff --git a/p7zip/.checksum b/p7zip/.checksum new file mode 100644 index 00000000..09aa4e3c --- /dev/null +++ b/p7zip/.checksum @@ -0,0 +1,2 @@ +baca2c2259e5f18b33e92aa0ad05e7f201a69e1360bc95d0e6405447df417b83 fix-uintxx_t-redefined.patch +650225789fbf2c33981dcbfa11fd6e880b714eca9b4934e24fcf6dd49a3df3b8 p7zip-17.06.tar.gz diff --git a/p7zip/.files b/p7zip/.files new file mode 100644 index 00000000..3d4adfb1 --- /dev/null +++ b/p7zip/.files @@ -0,0 +1,20 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/7z +-rwxr-xr-x root/root usr/bin/7za +-rwxr-xr-x root/root usr/bin/7zr +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/p7zip/ +-rwxr-xr-x root/root usr/lib/p7zip/7z +-rwxr-xr-x root/root usr/lib/p7zip/7z.so +-rwxr-xr-x root/root usr/lib/p7zip/7zCon.sfx +-rwxr-xr-x root/root usr/lib/p7zip/7za +-rwxr-xr-x root/root usr/lib/p7zip/7zr +drwxr-xr-x root/root usr/lib/p7zip/Codecs/ +-rwxr-xr-x root/root usr/lib/p7zip/Codecs/Rar.so +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/7z.1.gz +-rw-r--r-- root/root usr/share/man/man1/7za.1.gz +-rw-r--r-- root/root usr/share/man/man1/7zr.1.gz diff --git a/p7zip/abuild b/p7zip/abuild new file mode 100644 index 00000000..3cb5cdef --- /dev/null +++ b/p7zip/abuild @@ -0,0 +1,14 @@ +name=p7zip +version=17.06 +release=1 +source="https://github.com/$name-project/$name/archive/v$version/$name-$version.tar.gz + fix-uintxx_t-redefined.patch" + +build() { + sed '/^gzip/d' -i install.sh + sed -i '160a if(_buffer == nullptr || _size == _pos) return E_FAIL;' CPP/7zip/Common/StreamObjects.cpp + make all3 + make DEST_HOME=/usr \ + DEST_MAN=/usr/share/man \ + DEST_DIR=$PKG install +} diff --git a/p7zip/fix-uintxx_t-redefined.patch b/p7zip/fix-uintxx_t-redefined.patch new file mode 100644 index 00000000..d5d802da --- /dev/null +++ b/p7zip/fix-uintxx_t-redefined.patch @@ -0,0 +1,23 @@ +diff --git a/C/hashes/hash.h b/C/hashes/hash.h +index 3abf275..5084b25 100644 +--- a/C/hashes/hash.h ++++ b/C/hashes/hash.h +@@ -42,17 +42,7 @@ + + #include "../7zTypes.h" + +-#ifndef _UINT32_T_DECLARED +-typedef UInt32 uint32_t; +-#define _UINT32_T_DECLARED +-#endif +- +-#ifndef _UINT64_T_DECLARED +-typedef UInt64 uint64_t; +-#define _UINT64_T_DECLARED +-#endif +- +-//#include ++#include + + #ifndef min + #define min(a,b) (((a)>(b))?(b):(a)) -- cgit v1.2.3