You are not logged in.

#1 2008-06-13 00:26:52

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

newpkg -- Merged to pkgtools

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.

Changelog:

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)

Offline

#2 2008-06-13 06:33:27

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: newpkg -- Merged to pkgtools

so all it does it copy prototypes? Wouldn't it be neat if it prompted you for certain lines and variables?


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#3 2008-06-13 06:36:40

Anonymo
Member
Registered: 2005-04-07
Posts: 427
Website

Re: newpkg -- Merged to pkgtools

A PKGBUILD that creates PKGBUILDS!  Archlinux became aware June 12, 2008 at 19:26:52.

Offline

#4 2008-06-13 13:24:10

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: newpkg -- Merged to pkgtools

Stythys wrote:

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.

Offline

#5 2008-06-13 13:43:58

ornitorrincos
Forum Fellow
From: Bilbao, spain
Registered: 2006-11-20
Posts: 198

Re: newpkg -- Merged to pkgtools

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'

Offline

#6 2008-06-13 15:45:53

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: newpkg -- Merged to pkgtools

build () {
cat $(basename $0) > newPKGBUILD
}

Offline

#7 2008-06-13 16:33:12

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: newpkg -- Merged to pkgtools

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 lol 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.

Offline

#8 2008-06-21 03:41:08

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: newpkg -- Merged to pkgtools

Version 3 is now available.

Version 3.0
  - Added --pkgbuild option for using any prototype
  - Fixed bug which prevented --git and others from working
  - Minor formatting cleanup

Offline

Board footer

Powered by FluxBB