Somehow, the literal strings $srcdir or $pkgdir ended up in one of the installed files in your package.
$srcdir
$pkgdir