unpacker.eclass - helpers for extraneous file formats and consistent behavior across EAPIs
Some extraneous file formats are not part of PMS, or are only in certain
EAPIs. Rather than worrying about that, support the crazy cruft here
and for all EAPI versions.
unpack_pdv <file to unpack> <size of off_t>
Unpack those pesky pdv generated files ...
They're self-unpacking programs with the binary package stuffed in
the middle of the archive. Valve seems to use it a lot ... too bad
it seems to like to segfault a lot :(. So lets take it apart ourselves.
You have to specify the off_t size ... I have no idea how to extract that
information out of the binary executable myself. Basically you pass in
the size of the off_t type (in bytes) on the machine that built the pdv
One way to determine this is by running the following commands: