Something really old that I found today while cleaning email...not
sure if you can pull anything useful out of this, Allan. The from
address bounces which is why I'm forwarding this here rather than
asking him to write directly.
-Dan
---------- Forwarded message ----------
From: Archaic
Date: Sat, Feb 7, 2009 at 8:49 PM
Subject: Re: Feature Request
To: dan@archlinux.org
Okay, I think I've managed to integrate this feature request with the
minimal fuss and full backwards compatability. To give a run down, the
new features will allow for a build(), check(), and inst() section in
the PKGBUILD, however, if either check() or inst() are missing, they
will be skipped over. Also, check() will never even be attempted unless
the 'check' option appears in the PKGBUILD or makepkg.conf. There are 2
other changes that *can* be made to any give PKGBUILD merely as a result
of making the above changes:
1) You no longer need to cd "$srcdir/pkgname-pkgver" in the PKGBUILD.
The non-standard paths are still viable like ${srcdir}/tcl${pkgver}/unix
if so needed.
2) You don't need excess || return 1 statements as in:
./configure
make || return 1
make install
Provided you use a separate build(), check(), and inst() function, the
makepkg code itself will handle the errors.
Let me know what you think of these changes.
--
Archaic
My other computer is an abacus.