APKBUILD should be indented with tabs not spaces. This also resolves a bug which the replace_functions feature was always trimming off the beginning of a line. For example: replace_functions = {"build": "return 0"} would be formatted as "rn 0".