payload: {"action":"created","issue":{"url":"https://api.github.com/repos/void-linux/void-packages/issues/475","repository_url":"https://api.github.com/repos/void-linux/void-packages","labels_url":"https://api.github.com/repos/void-linux/void-packages/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/void-linux/void-packages/issues/475/comments","events_url":"https://api.github.com/repos/void-linux/void-packages/issues/475/events","html_url":"https://github.com/void-linux/void-packages/issues/475","id":336404140,"node_id":"MDU6SXNzdWUzMzY0MDQxNDA=","number":475,"title":"Package Template for when out of Beta - Zig - Ziglang","user":{"login":"Vaelatern","id":7906072,"node_id":"MDQ6VXNlcjc5MDYwNzI=","avatar_url":"https://avatars1.githubusercontent.com/u/7906072?v=4","gravatar_id":"","url":"https://api.github.com/users/Vaelatern","html_url":"https://github.com/Vaelatern","followers_url":"https://api.github.com/users/Vaelatern/followers","following_url":"https://api.github.com/users/Vaelatern/following{/other_user}","gists_url":"https://api.github.com/users/Vaelatern/gists{/gist_id}","starred_url":"https://api.github.com/users/Vaelatern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vaelatern/subscriptions","organizations_url":"https://api.github.com/users/Vaelatern/orgs","repos_url":"https://api.github.com/users/Vaelatern/repos","events_url":"https://api.github.com/users/Vaelatern/events{/privacy}","received_events_url":"https://api.github.com/users/Vaelatern/received_events","type":"User","site_admin":false},"labels":[{"id":979190632,"node_id":"MDU6TGFiZWw5NzkxOTA2MzI=","url":"https://api.github.com/repos/void-linux/void-packages/labels/request","name":"request","color":"1e0c8e","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-27T22:06:21Z","updated_at":"2019-04-21T21:15:33Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Recommendation: this not be turned into a PR until such a time as the third stage works. That is to say, when the language gets out of absolute Beta quality software.\r\n\r\nRecommendation: a build_option of 'bootstrap' be used to trigger a cmake build, else just rely on a preexisting zig package and run stage two and three to do the build (that means building the zig compiler twice, really necessary? Or just a stage 2 compiler will be adequate, since that has the same effect?)\r\n\r\n```\r\n# Template file for 'zig'\r\npkgname=zig\r\nversion=0.2.0\r\nrevision=1\r\nbuild_style=cmake\r\nmakedepends=\"llvm clang zlib-devel libxml2-devel ncurses-devel\"\r\nshort_desc=\"Robust, optimal, and clear programming language\"\r\nmaintainer=\"Toyam Cox <Vaelatern@voidlinux.eu>\"\r\nlicense=\"MIT\"\r\nhomepage=\"https://ziglang.org/\"\r\ndistfiles=\"https://github.com/ziglang/zig/archive/${version}.tar.gz\"\r\nchecksum=09843a3748bf8a5f1742fe93dbf45699f92051ecf479b23272b067dfc3837cc7\r\n\r\npost_install() {\r\n        vlicense LICENSE\r\n}\r\n\r\ndo_check() {\r\n        bin/zig build --build-file ../build.zig test\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/void-linux/void-packages/issues/comments/485282873","html_url":"https://github.com/void-linux/void-packages/issues/475#issuecomment-485282873","issue_url":"https://api.github.com/repos/void-linux/void-packages/issues/475","id":485282873,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NTI4Mjg3Mw==","user":{"login":"Duncaen","id":2813151,"node_id":"MDQ6VXNlcjI4MTMxNTE=","avatar_url":"https://avatars1.githubusercontent.com/u/2813151?v=4","gravatar_id":"","url":"https://api.github.com/users/Duncaen","html_url":"https://github.com/Duncaen","followers_url":"https://api.github.com/users/Duncaen/followers","following_url":"https://api.github.com/users/Duncaen/following{/other_user}","gists_url":"https://api.github.com/users/Duncaen/gists{/gist_id}","starred_url":"https://api.github.com/users/Duncaen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Duncaen/subscriptions","organizations_url":"https://api.github.com/users/Duncaen/orgs","repos_url":"https://api.github.com/users/Duncaen/repos","events_url":"https://api.github.com/users/Duncaen/events{/privacy}","received_events_url":"https://api.github.com/users/Duncaen/received_events","type":"User","site_admin":false},"created_at":"2019-04-21T21:15:33Z","updated_at":"2019-04-21T21:15:33Z","author_association":"MEMBER","body":"```\r\n# Template file for 'zig'\r\npkgname=zig\r\nversion=0.4.0\r\nrevision=1\r\nbuild_style=cmake\r\nconfigure_args=\"-DZIG_STATIC=FALSE\"\r\nhostmakedepends=\"cmake\"\r\nmakedepends=\"clang libxml2-devel llvm8 ncurses-devel zlib-devel\"\r\nshort_desc=\"Programming language designed for robustness, optimality, and clarity\"\r\nmaintainer=\"Duncaen <duncaen@voidlinux.org>\"\r\nlicense=\"MIT\"\r\nhomepage=\"https://ziglang.org/\"\r\ndistfiles=\"https://ziglang.org/download/${version}/zig-${version}.tar.xz\"\r\nchecksum=fec1f3f6b359a3d942e0a7f9157b3b30cde83927627a0e1ea95c54de3c526cfc\r\n\r\npost_extract() {\r\n        # make it link llvm dynamically\r\n        vsed -e '/OR ZIG_STATIC/c\\if(false)' -i cmake/Findllvm.cmake\r\n        # don't install build artefacts\r\n        vsed -i -e '/${ZIG_CPP_LIB_DIR}/d' CMakeLists.txt\r\n}\r\n\r\npost_install() {\r\n        vlicense LICENSE\r\n}\r\n```\r\n\r\nI didn't get cross builds working iirc, because something pulls in libgcc which then removed some `chroot-` packages."}}
other: {"actor":{"display_login":"Duncaen"}}