I am having some problems adding a .desktop I made to a package. The .desktop file I am using works but whenever I try and installf it to the package I get installf: ERROR: package instance <path to .desktop> is invalid. The code in my shell script looks like this....

$INSTALLF $PKGINST ${ICON_DIR}/${DESKTOP_FILE} f 640 user group || exit 2
$INSTALLF -f $PKGINST

Thanks in advance.