Re: [arch-dev-public] PKGBUILD prototypes
I started using a ${_realname} var in my perl PKGBUILDS - same idea as cpanname except the "::" name isn't really needed. Check out perl-net-dns for a good example. k On Mon, 2008-07-07 at 01:12 +1000, Allan McRae wrote:
Firmicus wrote:
Allan McRae a écrit :
Hi all,
I have been adding some PKGBUILD prototypes into the abs package as requested in [1]. So far I have added ones for perl, gnome and haskell packages.
I'd especially appreciate some comments on the haskell PKGBUILD/install file from our new haskell devs. Please look at the commit at my working branch [2].
Also, there are suggestions in the bug report to add java and lisp prototypes. Anyone have a good suggestions of packages to base these off?
Thanks, Allan
[1] http://bugs.archlinux.org/task/10274 [2] http://dev.archlinux.org/~allan/gitweb/gitweb.cgi?p=abs.git;a=shortlog;h=ref...
Allan,
I've looked at the PKGBUILD-perl.proto, which is almost identitcal to the one I had put on community together with those added by Sergej. As someone mentioned on flyspray, I had made a mistake in the url field: $pkgname should not be used there. In my perl packages I actually don't use any variable in the $url except for the $pkgver, but perhaps we could use the custom variable ${_cpanname}. It is of course always different from the package name (the rule being very often ${_cpanname} = Foo-Bar => $pkgname = perl-foo-bar).
Thanks, I missed that. I noticed that there should also not be $pkgname in the cd to the source either.
For Java I think there is a prototype on the wiki.
There is an outline of what the package should look like but not an actual pkgbuild. I could make one from it but I am being lazy...
Allan
-- K. Piche <kpiche@rogers.com>
K. Piche wrote:
I started using a ${_realname} var in my perl PKGBUILDS - same idea as cpanname except the "::" name isn't really needed. Check out perl-net-dns for a good example.
I am not going to use this as we generally discourage the use of custom variables. Also, this is only used in three places and does not change between releases. Allan
participants (2)
-
Allan McRae
-
K. Piche