Skip to content

Instantly share code, notes, and snippets.

@milkypostman
Created February 2, 2012 19:02
Show Gist options
  • Save milkypostman/1725129 to your computer and use it in GitHub Desktop.
Save milkypostman/1725129 to your computer and use it in GitHub Desktop.
(defun package-build-pkg-file (pkg-file pkg-info)
"Write PKG-FILE containing PKG-INFO."
(package-build-dump
`(define-package
,(aref pkg-info 0)
,(aref pkg-info 3)
,(aref pkg-info 2)
,(mapcar
(lambda (elt)
(list (car elt)
(package-version-join (cadr elt))))
(aref pkg-info 1)))
pkg-file))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment