Use gitpkg and verify REPO format

Signed-off-by: David Greaves <david@dgreaves.com>