summaryrefslogtreecommitdiff
path: root/opt/unzip/MAKEPKG
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/unzip/MAKEPKG
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/unzip/MAKEPKG')
-rw-r--r--opt/unzip/MAKEPKG40
1 files changed, 40 insertions, 0 deletions
diff --git a/opt/unzip/MAKEPKG b/opt/unzip/MAKEPKG
new file mode 100644
index 0000000..ed3a958
--- /dev/null
+++ b/opt/unzip/MAKEPKG
@@ -0,0 +1,40 @@
+#!/bin/mkpkg
+# description: Decompress utility for zip archives
+# url: https://infozip.sourceforge.net/UnZip.html
+
+name=unzip
+version=6.0
+release=1
+depends=()
+source=(https://downloads.sourceforge.net/sourceforge/infozip/unzip60.tar.gz
+ cumulative.patch
+ 28-cve-2022-0529-and-cve-2022-0530.patch)
+sha256sums=(
+ "036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37"
+ "f4173a8e2a2eea7f537ef8919369c2b6bac43d9ccd05345755ac0d1457c24234"
+ "a27efd8c4950fb3d942d602ad7846996e02aafd77a8ad1e26700e42ae6c1cd37"
+)
+
+build() {
+ cd unzip60
+
+ patch -Np1 -i $SRC/cumulative.patch
+ patch -p1 -F3 -i $SRC/28-cve-2022-0529-and-cve-2022-0530.patch
+
+ sed -i 's/-O3//' unix/configure
+
+ make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" unzips
+ make -f unix/Makefile \
+ prefix=$PKG/usr \
+ MANDIR=$PKG/usr/share/man/man1 \
+ install
+
+ ln -sf unzip $PKG/usr/bin/zipinfo
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh