cublas-10.1.pc is broken

I downloaded https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.105-418.39_1.0-1_amd64.deb and installed CUDA as described on the page https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=deblocal. The pkgconfig file included in the cuBLAS package looks like this:

/usr/lib/pkgconfig/cublas-10.1.pc

pkgroot=${prefix}/lib/x86_64-linux-gnu
libdir=${pkgroot}/lib64
includedir=${pkgroot}/include

Name: cublas
Description: 
Version: 10.1
Libs: -L${libdir} -lcublas
Cflags: -I${includedir}

This is obviously incorrect, because “prefix” is never defined anywhere. As a consequence, pkg-config cannot produce correct CFLAGS. To make it work, I edited the file like this:

libdir=/usr/lib/x86_64-linux-gnu
includedir=/usr/include

Name: cublas
Description: 
Version: 10.1
Libs: -L${libdir} -lcublas
Cflags: -I${includedir}

Please fix your package.