Compare commits

...

4 Commits
master ... stfl

Author SHA1 Message Date
star9029 054b47fe26
fix includedirs 9 months ago
star9029 473a33fd32
fix syslinks 9 months ago
star9029 c624fbecee
limit plat 9 months ago
star9029 d7358cf80d
stfl: add package 9 months ago
  1. 38
      packages/s/stfl/xmake.lua

@ -0,0 +1,38 @@
package("stfl")
set_homepage("https://github.com/newsboat/stfl")
set_description("stfl with Newsboat-related bugfixes")
set_license("LGPL-3.0")
add_urls("https://github.com/newsboat/stfl/archive/c2c10b8a50fef613c0aacdc5d06a0fa610bf79e9.tar.gz",
"https://github.com/newsboat/stfl.git")
add_versions("0.24", "59d3f43522161bc2252bd806f973ad64c86a081f06a57a6d628b1c7bdfee7551")
if is_plat("linux", "bsd") then
add_syslinks("pthread")
end
add_deps("ncurses")
on_install("linux", "macosx", "bsd", function (package)
io.writefile("xmake.lua", [[
add_rules("mode.release", "mode.debug")
add_requires("ncurses")
add_packages("ncurses")
target("stfl")
set_kind("$(kind)")
add_files("*.c|example.c")
add_files("widgets/*.c")
add_includedirs(".")
add_headerfiles("stfl.h")
if is_plat("linux", "bsd") then
add_syslinks("pthread")
end
]])
import("package.tools.xmake").install(package)
end)
on_test(function (package)
assert(package:has_cfuncs("stfl_create", {includes = "stfl.h"}))
end)
Loading…
Cancel
Save