Like everybody else I was pretty excited once I heard about Hugo’s SCSS capabilities which became a reality in the latest releases. This means my projects are no slave to nodesass anymore and will finally build on my Android phones and tablets. Yay! But alas, the prebuilt Hugo binaries for ARM don’t include the extended madness the Hugo developers worked so hard on. I tried to resolve this problem myself. And as it turns out building an extended version for Termux and Android wasn’t that difficult. Following the Termux wiki on package management and borrowing from the homebrew build script resulted in: a Termux APT repository for Hugo. Find instructions to add the repository to Termux on the repository website or the accompanying github repo.
The repository includes builds for aarch64, arm, x86_64 and i686. The x86_64 and i686 are so far untested. I hope this is useful for anyone besides myself and am thankful for any feedback.
TL;DR; for trusting Termux aficionados
mkdir -p $PREFIX/etc/apt/sources.list.d echo "deb https://termux.holehan.org/ termux extras" \ > $PREFIX/etc/apt/sources.list.d/holehan.list curl -L https://termux.holehan.org/holehan.key | apt-key add - pkg install hugo