Skip to content

Commit

Permalink
pacman.rb: fix aarch64 & arm7hf (#2017)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarksonHon authored Mar 6, 2025
1 parent 4beb98f commit 3f044a4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/fpm/package/pacman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ def initialize(*args)
def architecture
case @architecture
when nil
return %x{uname -m}.chomp # default to current arch
when "amd64" # debian and pacman disagree on architecture names
return "x86_64"
return %x{uname -m}.chomp # default to current arch
when "amd64" # Debian uses amd64
return "x86_64" # Arch Linux uses x86_64
when "arm64" # Debian uses arm64
return "aarch64" # Arch Linux ARM uses aarch64
when "armhf" # Debian uses armhf
return "arm7hf" # Arch Linux ARM uses arm7hf
when "native"
return %x{uname -m}.chomp # 'native' is current arch
return %x{uname -m}.chomp # 'native' is the current arch
when "all", "any", "noarch"
return "any"
else
Expand Down

0 comments on commit 3f044a4

Please sign in to comment.