aboutsummaryrefslogtreecommitdiff
path: root/p7zip
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:36 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:36 +0000
commit93a354611e38a6949add5c2e5ccc93ef79b9755f (patch)
tree7fee41752b1047d74c59f8ee046cd62735e7e934 /p7zip
parent35912580b66e9439f91ea441938828ad8aa33b0d (diff)
downloadalicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.tar.gz
alicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.zip
Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI]
Diffstat (limited to 'p7zip')
-rw-r--r--p7zip/.checksum2
-rw-r--r--p7zip/.files20
-rw-r--r--p7zip/abuild14
-rw-r--r--p7zip/fix-uintxx_t-redefined.patch23
4 files changed, 59 insertions, 0 deletions
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 <stdint.h>
++#include <stdint.h>
+
+ #ifndef min
+ #define min(a,b) (((a)>(b))?(b):(a))