package-desc-from-define

package-desc-from-define is a compiled Lisp function in `package.el'.

(package-desc-from-define NAME-STRING VERSION-STRING &optional SUMMARY REQUIREMENTS &rest REST-PLIST &aux (NAME (intern name-string)) (VERSION (version-to-list version-string)) (REQS (mapcar #'(lambda (elt) (list (car elt) (version-to-list (cadr elt)))) (if (eq 'quote (car requirements)) (nth 1 requirements) requirements))) (KIND (plist-get rest-plist :kind)) (ARCHIVE (plist-get rest-plist :archive)) (EXTRAS (let (alist) (while rest-plist (unless (memq (car rest-plist) '(:kind :archive)) (let ((value (cadr rest-plist))) (when value (push (cons (car rest-plist) (if (eq (car-safe value) 'quote) (cadr value) value)) alist)))) (setq rest-plist (cddr rest-plist))) alist)))

Not documented.