pkgbuild: change xdeclare to take an argument (tag to be assigned)