For new versions (2.1+) a build script can be found here: https://github.com/wofferl/proxmox-backup-arm64
This is a clone of the repository https://git.proxmox.com/git/proxmox-backup.git with small changes used to compile for armbian64.
Use debian buster arm64 as base image.
apt-get -y install \
build-essential llvm clang git-core \
lintian pkg-config quilt patch cargo \
nodejs node-colors node-commander \
libudev-dev libapt-pkg-dev \
libacl1-dev libpam0g-dev libfuse3-dev \
libsystemd-dev uuid-dev libssl-dev \
libclang-dev libjson-perl libcurl4-openssl-dev \
dh-exec liblocale-po-perl sudo
curl -sSf https://static.rust-lang.org/rustup.sh | sh -s
source .cargo/env
sudo apt -y build-dep $PWD/proxmox-backup
git clone https://git.proxmox.com/git/pve-eslint.git
cd pve-eslint
make deb
sudo apt install ./pve-eslint_7.18.0-1_all.deb
git clone https://git.proxmox.com/git/dh-cargo.git
git -C dh-cargo/ checkout -b v24 fc51977a114458e8214582d1410e5cbc95df6eee
cd dh-cargo
dpkg-buildpackage -us -uc -b
sudo apt install ../dh-cargo_24~bpo10+pve1_all.deb
git clone https://git.proxmox.com/git/proxmox.git
git -C proxmox checkout -b v0.11.6 b900c87a8f47c3e6fc93a21fee543f83eb514947
git clone https://git.proxmox.com/git/proxmox-fuse.git
git -C proxmox-fuse checkout -b 0.1.1 0e0966af8886c176d8decfe18cb7ead4db5a83a6
git clone https://git.proxmox.com/git/pxar.git
git -C pxar checkout -b 0.10.1 82608859c8f949f9f527eeb891b42897bc2675a0
git clone https://git.proxmox.com/git/pathpatterns.git
git -C pathpatterns checkout -b 0.1.2 916e41c50e75a718ab7b1b95dc770eed9cd7a403
git clone https://git.proxmox.com/git/proxmox-acme-rs.git
git -C proxmox-acme-rs checkout -b 0.2.1-1 a6ff69404b9f8e80d78d2a29eda977a3d8f90bfd
cargo vendor
dpkg-buildpackage -b -us -uc
###### pve-xtermjs
git clone https://github.com/wofferl/pve-xtermjs.git
cd pve-xtermjs && make deb
###### proxmox-mini-journalreader
git clone https://git.proxmox.com/git/proxmox-mini-journalreader.git
git -C proxmox-mini-journalreader checkout -b 1.1 7d75c26107561aa6108c0487875051bca6f85452
cd proxmox-mini-journalreader/ && make deb
###### proxmox-widget-toolkit
git clone https://git.proxmox.com/git/proxmox-widget-toolkit.git
git -C proxmox-widget-toolkit checkout -b 2.6-1 ac4b6393d60e3f7219510af4339a4f8c9794dbe4
cd proxmox-widget-toolkit/ && make deb
###### proxmox acme
git clone https://git.proxmox.com/git/proxmox-acme.git
git checkout -b 1.1.0 bd6a54e6f4e238423cad46941d8216d65f128b79
cd proxmox-acme/ && make deb
###### pbs-i18n
git clone https://git.proxmox.com/git/proxmox-i18n.git
cd proxmox-i18n/ && make deb
###### libjs-extjs
git clone https://git.proxmox.com/git/extjs.git
git -C extjs checkout -b 6.0.1 7e289e3bd34ee1078ecfe39f5fd52601c9faf90a
cd extjs/ && make deb
###### libjs-qrcodejs
git clone https://git.proxmox.com/git/libjs-qrcodejs.git
cd libjs-qrcodejs && make deb