I hope you all enjoy this. I wrote it because we all do the same stuff when making new PKGBUILDS -- laziness begets new toys, as they say...
newpkg is available as part of the pkgtools package on AUR
I will not be maintaining this thread any longer, please refer to the pkgtools thead
I'll be very happy if anyone posts any ideas for improvement.
Version 3.0 - Added --pkgbuild option for using any prototype - Fixed bug which prevented --git and others from working - Minor formatting cleanup Version 2.0 - Added ability to specify the Contributor: line - Removed the "Example PKGBUILD" notice from generated PKGBUILDs Version 1.0 - First version.
Last edited by Daenyth (2008-06-21 16:03:41)
A PKGBUILD that creates PKGBUILDS! Archlinux became aware June 12, 2008 at 19:26:52.
so all it does it copy prototypes? Wouldn't it be neat if it prompted you for certain lines and variables?
Well it also does some preparation with $pkgname, $sources, $install, depending on what options you pass to it. I don't know quite what you mean about prompting, why wouldn't you just go to your editor and do it that way? I don't really see the usefulness of such a thing, but if you want to write it, I'll consider putting it in.
actually it's a PKGBUILD that installs a shell script that creates PKGBUILDS
I guess we could try doing a self replicating PKGBUILD...
-$: file /dev/zero
/dev/zero: symbolic link to '/dev/brain'
self-replicating and self-healing, that would be cool!
anyway, this _can_ be expanded. like:
newpkg daenythlinux 0.0.1 2 "A multi-tasking Daenyth on YOUR Linux desktop" 32-64 http://daenyth.lin GPL ...
You get the idea But nah, nothing else I can think of. That's all there is to it, basically.
I need real, proper pen and paper for this.