I want to depend my deb package to current kernel version that is installed on machine.
for example if my kernel version is 3.13.0-77 my deb file depends on linux-headers-3.13.0.77-generic
if I add "linux-headers-$(uname -r)" to Depends field in debian/control file, dpkg-buildpackage returns an error in dpkg-gencontrol process.
how can I add this feature in my packaging?