local package = {} package.name = "libtoml" package.version = "" package.description = "powerful, efficient, lightweight, embeddable scripting language" package.arch = { "x86_64" } package.license = { "MIT" } package.deps = { build = { { provides = "cc" }, { provides = "make" }, }, } package.sources = { { path = "https://github.com/arp242/toml-c/archive/6a38d404184a3b399d61821dbfff229579d59a00.tar.gz", hash = "75b845550512b3643b6603640d53ac2ad9f616ecf5ceab1aa995cef275cdcae20490db5a5954f9423d333ddc5e57f2b2ec0aeb4b3e97bb8ff909e188ad6d49f0", out = "source.tar.gz", }, } package.build = function() pow.extract("source.tar.gz", "source") pow.chdir("source/toml-c-6a38d404184a3b399d61821dbfff229579d59a00") local make_command = string.format("make %s", pow.config.makeopts) os.execute(make_command) end package.install = function() pow.install("toml.h", "/usr/include/toml.h") pow.install("libtoml.a", "/usr/lib/libtoml.a") pow.install("libtoml.so.1.0", "/usr/lib/libtoml.so.1.0") end return package