{"id":20667026,"url":"https://github.com/lu-zero/pkgcraft-bash","last_synced_at":"2026-03-11T01:31:30.080Z","repository":{"id":139398492,"uuid":"441861034","full_name":"lu-zero/pkgcraft-bash","owner":"lu-zero","description":"Bash plugins for pkgcraft","archived":false,"fork":false,"pushed_at":"2021-12-26T15:42:36.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-15T02:15:57.169Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lu-zero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-12-26T10:12:01.000Z","updated_at":"2021-12-26T10:12:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"b124afb5-084c-4adf-a108-9cd4eaa1851a","html_url":"https://github.com/lu-zero/pkgcraft-bash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lu-zero/pkgcraft-bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Fpkgcraft-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Fpkgcraft-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Fpkgcraft-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Fpkgcraft-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lu-zero","download_url":"https://codeload.github.com/lu-zero/pkgcraft-bash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Fpkgcraft-bash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30366051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-16T19:42:41.173Z","updated_at":"2026-03-11T01:31:30.058Z","avatar_url":"https://github.com/lu-zero.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# pkgcraft-bash\n\nVarious bash plugins that leverage pkgcraft's C API instead of being forced to\nmaintain duplicate functionality such as version parsing and comparisons in\nbash.\n\n## Plugins\n\n- **[ver_cut][1]**: output version substrings\n- **[ver_rs][1]**: perform version string substitutions\n- **[ver_test][1]**: perform version comparisons\n\n## Development\n\nDeveloping pkgcraft-bash assumes that recent versions of rust, cargo, meson,\nand bash are installed along with a standard C compiler.\n\nNote that bash must be built with plugin support enabled and also have the\ndevelopment files (.pc and headers) available on the system.\n\nTo build pkgcraft-bash, run the following commands:\n\n    # install cargo-c\n    cargo install cargo-c\n\n    # clone repos\n    git clone https://github.com/pkgcraft/pkgcraft.git\n    git clone https://github.com/pkgcraft/pkgcraft-c.git\n    git clone https://github.com/pkgcraft/pkgcraft-bash.git\n\n    # build pkgcraft-c\n    cd pkgcraft-c\n    cargo cbuild\n\n    # create library symlink with expected name -- note that the target triplet may be different\n    ln -rs target/x86_64-unknown-linux-gnu/debug/libpkgcraft.so target/x86_64-unknown-linux-gnu/debug/libpkgcraft.so.0\n\n    # build pkgcraft-bash\n    cd ../pkgcraft-bash\n    export PKG_CONFIG_PATH=../pkgcraft-c/target/x86_64-unknown-linux-gnu/debug\n    meson setup build \u0026\u0026 meson compile -C build -v\n\n    # bash plugin loading example\n    bash -c \"enable -f build/src/ver_test.so ver_test \u0026\u0026 ver_test 1 -lt 2\"\n\n\n[1]: \u003chttps://projects.gentoo.org/pms/latest/pms.html#x1-13400012.3.14\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flu-zero%2Fpkgcraft-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flu-zero%2Fpkgcraft-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flu-zero%2Fpkgcraft-bash/lists"}