You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
unxip: Update to 3.3
Also add support for installing unxip on Linux.
This commit is contained in:
@@ -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/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user