Skip to content

Commit

Permalink
sketchybar: set supported_arch and build for correct architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
reneeotten committed Oct 23, 2024
1 parent 91444bf commit 2a5c190
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sysutils/sketchybar/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ maintainers {@bashu gmail.com:bashu.was.here} openmaintainer
license GPL-3
name sketchybar
revision 0
supported_archs x86_64 arm64
description Custom macOS statusbar with shell plugin, interaction and graph support
long_description This bar project aims to create a highly flexible, \
customizable, fast and powerful status bar replacement \
Expand All @@ -33,6 +34,15 @@ post-patch {
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/org.macports.${name}.plist
}


if {${configure.build_arch} == "x86_64"} {
build.target "x86"
} elseif {${configure.build_arch} == "arm64"} {
build.target "arm64"
} elseif {${universal_possible}} {
build.target "universal"
}

destroot {
# Copy binary
xinstall -m 755 ${worksrcpath}/bin/sketchybar ${destroot}${prefix}/bin/sketchybar
Expand Down

0 comments on commit 2a5c190

Please sign in to comment.