New review comment by TinfoilSubmarine on void-packages repository https://github.com/void-linux/void-packages/pull/35736#discussion_r812153460 Comment: Why do we do custom `do_configure`, `do_build`, and `do_install` instead of just letting `build_style=go` do its thing? All you have to do is add ``` go_import_path="git.sr.ht/~rjarry/aerc" ``` to the template and remove the custom `do_configure`, `do_build`, and `do_install`. You'll need a custom `post_install` to include all of the docs and configuration files: ``` post_install() { make doc for f in *.{1,5,7}; do vman $f done vmkdir usr/share/aerc vcopy config/*.conf usr/share/aerc vcopy filters usr/share/aerc vcopy templates usr/share/aerc vinstall config/default_styleset 644 usr/share/aerc/stylesets default vinstall contrib/aerc.desktop 644 usr/share/applications vlicense LICENSE } ``` This fixes the LDFLAGS issue w/o needing to unset it.