{"id":17336845,"url":"https://github.com/chris2511/meta-luarocks","last_synced_at":"2025-04-14T18:40:59.736Z","repository":{"id":47352734,"uuid":"388804831","full_name":"chris2511/meta-luarocks","owner":"chris2511","description":"yocto layer for automatic lua recipe creation and build with the help of luarocks","archived":false,"fork":false,"pushed_at":"2025-03-25T09:47:24.000Z","size":104,"stargazers_count":2,"open_issues_count":4,"forks_count":6,"subscribers_count":2,"default_branch":"scarthgap","last_synced_at":"2025-03-28T07:04:28.066Z","etag":null,"topics":["lua","luarocks","yocto-layer"],"latest_commit_sha":null,"homepage":"","language":"BitBake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chris2511.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-23T13:07:18.000Z","updated_at":"2025-03-25T09:47:29.000Z","dependencies_parsed_at":"2024-12-03T12:47:29.817Z","dependency_job_id":null,"html_url":"https://github.com/chris2511/meta-luarocks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris2511%2Fmeta-luarocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris2511%2Fmeta-luarocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris2511%2Fmeta-luarocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris2511%2Fmeta-luarocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chris2511","download_url":"https://codeload.github.com/chris2511/meta-luarocks/tar.gz/refs/heads/scarthgap","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248938139,"owners_count":21186351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","luarocks","yocto-layer"],"created_at":"2024-10-15T15:32:43.229Z","updated_at":"2025-04-14T18:40:59.699Z","avatar_url":"https://github.com/chris2511.png","language":"BitBake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# meta-luarocks: handle bitbake LUA recipes with luarocks\n\nThis layer adds many lua recipes that use the luarocks\napplication to build and install the files.\n\nIt also helps adding new recipes with the `bin/autogen_bb.lua` script.\n\n## Easy addition of new LUA package bitbake recipes\n\n - Enter the `meta-luarocks` directory\n - Call `bin/autogen_bb.lua \u003clua-package-name\u003e`\n   - autogen downloads the rockspec file\n   - it extracts values for the bitbake recipe\n   - downloads the source archive to gather more data (LICENSE, src-dir)\n   - creates a new recipe, prefixed by `lua-` if the package name does not\n     already start with `lua`\n   - repeats it for all dependencies declared in the rockspec\n - Open the new `package-name.bb` and adapt as needed.\n - Build it with bitbake\n\nThis is just a helper script for an easy start, it is not perfect.\n\n## Details about the `luarocks.bbclass`\n\n - `do_configure()` creates a `luarocks.config` file in the\n   WORKDIR.\n - `do_compile()` calls `luarocks` from the RECIPE\\_SYSROOT\\_NATIVE\n   directory with the `luarocks.config`. Dependencies are ignored by luarocks\n   and handled by bitbake dependencies.\n   It finally installs the sources in `WORKDIR/rockinst/usr`, because it has no\n   separate install step\n - `do_install()` copies all artefacts to ${D}\n\nThe luarocks package management files from `/usr/lib/luarocks` are put\ninto the `-dev` package.\n\n### Compiler variables and settings\n\nVariables that can be added in the recipe to control the compiling behavior:\n - `LUAROCKS_EXTRA_CC` will be appended to the CC variable in the settings.\n - `LUAROCKS_EXTRA_LD` will be appended to the LD command, which is by default\n   `${CC} ${LDFLAGS}`\n\n - `LUAROCKS_EXTRA_CFLAGS` will be appended to the CFLAGS variable.\n\n### Native lua packages\n\nAll packages get the `BBCLASSEXTEND = \"native\"` to be buildable\nfor the host. This comes in handy if you want to call LUA scripts\nat build-time like for example `busted`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris2511%2Fmeta-luarocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchris2511%2Fmeta-luarocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris2511%2Fmeta-luarocks/lists"}