This is how I got it to work
```
(use-package tex
:demand t
:elpaca (auctex :pre-build (("./autogen.sh")
("./configure"
"--with-texmf-dir=$(dirname $(kpsexpand '$TEXMFHOME'))")
("make")))
... rest of your config)
```