add demumble (#1307 )
* add demumble * add demumble * fix install * fix test * fix installpull/1308/head
parent
7b3267d6e9
commit
ce6af89e15
1 changed files with 23 additions and 0 deletions
@ -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…
Reference in new issue