Use 'pkg-config --modversion libsigrok' to get the libsigrok package version. 'pkg-config --version libsigrok' ignores the argument and just reports the version of pkg-config itself.