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 vman aerc.1 vman aerc-search.1 vman aerc-config.5 vman aerc-imap.5 vman aerc-maildir.5 vman aerc-sendmail.5 vman aerc-notmuch.5 vman aerc-smtp.5 vman aerc-tutorial.7 vman aerc-templates.7 vman aerc-stylesets.7 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.