Skip to content

Commit

Permalink
improve pacman package name again
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 22, 2024
1 parent 6f0b864 commit 7179682
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions xmake/modules/package/manager/pacman/get_package_name.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ function main(name, opt)
elseif arch == "arm64" then
arch = "aarch64"
end
local msystem_env = os.getenv("MSYSTEM")
if msystem_env and not msystem_env:startswith("MINGW") then
local i, j = msystem_env:find("%D+")
name = prefix .. msystem_env:sub(i, j):lower() .. "-" .. arch .. "-" .. name
if msystem ~= "mingw" then
name = prefix .. msystem .. "-" .. arch .. "-" .. name
else
name = prefix .. arch .. "-" .. name
end
Expand Down

0 comments on commit 7179682

Please sign in to comment.