Some READMEs list the packages you need as a dependency line, version numbers included. Instead of translating that by hand, I can hand the line to apt-get as it is.
The satisfy command makes apt-get satisfy the dependency strings you give it, in the format used for package dependencies. The manual describes that the strings may carry build profiles and architecture restrictions, and that you can put Conflicts: in front of one to unsatisfy it. A simple case with version constraints:
sudo apt-get satisfy "libssl-dev (>= 3.0)" "pkg-config"
Each quoted argument is one dependency string. Alternatives with a pipe and several entries separated by commas are also allowed, as in the manual’s own example: apt-get satisfy "foo" "Conflicts: bar" "baz (>> 1.0) | bar (= 2.0), moo".
Because a Conflicts: entry can change what is installed, I run it as a simulation first. The -s option prints what apt would do and changes nothing:
apt-get -s satisfy "libssl-dev (>= 3.0)" "pkg-config"
Read the list of packages to install and to remove, and only then run the real command.
The caveat from the manual is about the operators. The old < and > are not supported. Use <= and >=, or the strict forms << and >>, as the second example above does. A line copied from an old README with a single > will be refused.
The manual page I read is the Debian bookworm one, and the command is also in the newer trixie page. Check man apt-get on your own release for a satisfy entry before you rely on it. This is not a replacement for apt-get build-dep, which installs the build dependencies of a source package that is in your repositories.
Further reading: apt-get(8): satisfy