From b4df4558be23490ffdb4b87c7e164f79bc06475d Mon Sep 17 00:00:00 2001 From: Saagar Jha Date: Fri, 9 Jan 2026 04:05:06 -0800 Subject: [PATCH] unxip: Update to 3.3 Also add support for installing unxip on Linux. --- archivers/unxip/Portfile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/archivers/unxip/Portfile b/archivers/unxip/Portfile index d15c4155549..c2a99136b66 100644 --- a/archivers/unxip/Portfile +++ b/archivers/unxip/Portfile @@ -4,7 +4,7 @@ PortSystem 1.0 PortGroup github 1.0 PortGroup muniversal 1.1 -github.setup saagarjha unxip 3.2 v +github.setup saagarjha unxip 3.3 v revision 0 github.tarball_from archive @@ -18,9 +18,9 @@ long_description ${name} is a command-line tool designed for rapidly unarchiv outperform Bom (which powers xip and Archive Utility) in both performance \ and on-disk usage. -checksums rmd160 22bf0ad82e4522ce45ecf38fded695b35861d372 \ - sha256 6ce48aa06d1fe06352f2937912cb43c7cd93c0a8066222af35d29d6d08130788 \ - size 22577 +checksums rmd160 6c1760b7fe2cf7a355f274ac67111405d2d3ff08 \ + sha256 490c27aeabad33a8c811ada09008d24835f0f701ad40092b450c4788cdf99198 \ + size 22776 if {${os.platform} eq "darwin" && ${os.major} < 21} { known_fail yes @@ -38,16 +38,21 @@ if {${os.platform} eq "darwin" && ${os.major} < 22} { configure.sdk_version 13 } -build.cmd swiftc -build.target unxip.swift -build.args -O -whole-module-optimization -parse-as-library +build.cmd swift +build.target build +build.args --configuration release --disable-sandbox + +if {${os.platform} ne "darwin"} { + depends_lib port:zlib \ + port:xz +} if {${universal_possible} && [variant_isset universal]} { foreach arch "${muniversal.architectures}" { - build.args.${arch}-append -target "${arch}-${triplet.vendor}-${triplet.os}" + build.args.${arch}-append --arch "${arch}" } } destroot { - xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/ + xinstall -m 755 ${worksrcpath}/.build/release/${name} ${destroot}${prefix}/bin/ }