add demumble (#1307)

* add demumble

* add demumble

* fix install

* fix test

* fix install
pull/1308/head
ruki 3 years ago committed by GitHub
parent 7b3267d6e9
commit ce6af89e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      packages/d/demumble/xmake.lua

@ -0,0 +1,23 @@
package("demumble")
set_kind("binary")
set_homepage("https://github.com/nico/demumble")
set_description("A better c++filt and a better undname.exe, in one binary.")
set_license("Apache-2.0")
add_urls("https://github.com/nico/demumble.git")
add_versions("2022.3.23", "df938e45c2b0e064fb5323d88b692d03b451d271")
add_deps("cmake")
on_install("@linux", "@macosx", "@windows", function (package)
import("package.tools.cmake").install(package, {}, {buildir = "build"})
if package:is_plat("windows") then
os.cp("build/Release/demumble.exe", package:installdir("bin"))
else
os.cp("build/demumble", package:installdir("bin"))
end
end)
on_test(function (package)
os.vrunv("demumble" .. (package:is_plat("windows") and ".exe" or ""), {"_Z4funcPci"})
end)
Loading…
Cancel
Save