--- /dev/null
+#!/bin/bash
+
+mkdir /build
+ls -alr /build
+chown -R nobody:nobody /build
+chmod -R g+ws /build
+su -l nobody --shell=/bin/bash <<EOF
+export HOME=/build # make yarn happy about having a writeable homedir
+git clone https://aur.archlinux.org/jellyfin.git /build/makepkg
+cd /build/makepkg
+makepkg --noarchive
+EOF
+
+ls -la /build/makepkg
+cp -dr --no-preserve='ownership' /build/makepkg/pkg/jellyfin-{server,web}/* $DESTDIR