patsubst adds whitespaces preventing the correct file, perl and chrpath to be used. For archlinux package file command fails because of this.
/cc @tomo@jm
Revert this merge request
This will create a new commit in order to revert the existing changes.