diff --git a/recipes/xz/recipe.toml b/recipes/xz/recipe.toml
index 1ba461ba73d2fc507bb35f2fd8345d0cbc4f1231..31958a6719fd445880653d1dada45e461fd31838 100644
--- a/recipes/xz/recipe.toml
+++ b/recipes/xz/recipe.toml
@@ -1,5 +1,8 @@
 [source]
 tar = "https://codeload.github.com/xz-mirror/xz/tar.gz/v5.2.5"
+script = """
+./autogen.sh
+"""
 
 [build]
 template = "custom"