blob: a71bbebf7002cc4c5af4172cfd0460a290385ac4 [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001DESCRIPTION = "luaposix is a POSIX binding for Lua."
2LICENSE = "MIT"
3HOMEPAGE = "https://github.com/luaposix/luaposix"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=f81069e00c0cad249f20efe958276db1"
5
6DEPENDS += "lua-native lua virtual/crypt"
7
Andrew Geissler595f6302022-01-24 19:11:47 +00008SRC_URI = "git://github.com/luaposix/luaposix.git;branch=release-v${PV};protocol=https \
Andrew Geisslereff27472021-10-29 15:35:00 -05009"
10SRCREV = "14043c5086ae738823a5dfbc9170d9e14193fbef"
11S = "${WORKDIR}/git"
12LUA_VERSION = "5.4"
13
14B = "${S}"
15
16inherit pkgconfig
17
18do_compile() {
19 ${S}/build-aux/luke
20}
21
22do_install() {
Andrew Geissler9aee5002022-03-30 16:27:02 +000023 ${S}/build-aux/luke PREFIX=${D}${prefix} INST_LIBDIR=${D}${libdir}/lua/${LUA_VERSION} install
Andrew Geisslereff27472021-10-29 15:35:00 -050024}
25
26FILES:${PN} = "${datadir}/lua/${LUA_VERSION} \
27 ${libdir}/lua/${LUA_VERSION}"