Good question.
While you won't be able to do architecture detection within the YAML, you can tell the plugins to use a subdirectory of the source rather than the root. So as long as you're okay changing that subdirectory by hand depending on the architecture for which you're building, you're good.
Let's assume the layout of the project you're cloning looks like this:
/:
subdir1:
Makefile
subdir2:
Makefile
Let's also assume that you're only interested in building subdir1. Here's a snippet from snapcraft help sources:
So you can Snapcraft what you want with YAML like this:
parts:
base:
plugin: make
source: git://github.com/myproject.git
source-type: git
source-subdir: subdir1
That will cause make/make install to be run from subdir1. Note that this applies to any plugin that supports the source options.
EDIT:
Indeed, as sergiusens points out in the comments, snapcraft help make is useful to read, and points out another potential answer here:
parts:
base:
plugin: make
source: git://github.com/myproject.git
source-type: git
makefile: subdir1/Makefile
That causes make/make install to be called with -f subdir1/Makefile