The sed command was matching and changing the spl version number along with the
linux version number. This caused makepkg to fail when building the zfs package
because it was searching for the incorrect spl version number.
There was an extra useless sed command that was causing the dependency version
to be changed before the actual version replacement sed command was used.
The functions now reference $PWD instead of taking a path argument. A typo was
also fixed to a misnamed variable that caused the $FULL_VERSION variable to
cause misnamed files.
It was not possible to indicate the PKGREL version of the linux kernel package
within the script. Instead the script was using the archzfs PKGREL for
dependency versions, or 3.10.6-1 instead of 3.10.6-2.
Building these packages and adding them to a repo is robotic. This script does
all of it for me. This is the third version of the build utility. This builds
in an chroot environment created with arch-nspawn.