pkg_libelf_install_post() { if ! is_build_script_done installed2; then rm -f lib/libelf.def; echo EXPORTS > lib/libelf.def; perk -e lib/libelf.so >> lib/libelf.def; ${HOST_NATIVE}-dlltool \ --output-lib lib/libelf.lib.a \ --dllname libelf.so \ --input-def lib/libelf.def; cp lib/libelf.lib.a ${PREFIX}/lib; set_build_script_done installed2 -finished; fi; }; # vim:filetype=sh