Help create package Makefile for upstream multi-arch binary

I'd like to create a package where upstream (Ookla / Speedtest in this case), provides a Linux binaries for i386, x86_64, arm32, arm32hf, and arm64 in a .tgz.

If someone could point me at a current package that does this, I'd tweak that Makefile for this.
Or how I should unpack the tgz, and only package the binary.

The other issue is changing the download link based on architecture, unsure of how to deal with this too.

I have an old Makefile for packaging prebuilt k3s binaries. Hope it helps. https://github.com/yousong/waller/tree/master/k3s

Note that packaging prebuilt binaries is generally a frowned-upon approach and have low likelihood got included in the release cycle. http://lists.openwrt.org/pipermail/openwrt-devel/2019-November/026129.html

2 Likes