If I use xpi_unpack this way xpi_unpack ./foo.xpi, unzip exits because it can't find the specified xpi. This is because xpi_unpack first creates and enters the directory with cd "${WORKDIR}/${xpiname} and then issues unzip "${srcdir}${xpi}". But srcdir is never assigned the current directory as a value. It is only assigned the value "${DISTDIR}/" when the xpi name doesn't start with "./" or "/"
Created attachment 291001 [details, diff] mozextension.eclass.patch Patch to fix extraction from current directory