[pacman-dev] [PATCHES] Refreshed PKGBUILDs
Geoffroy Carrier
geoffroy.carrier at koon.fr
Sat May 17 09:45:21 EDT 2008
Hi!
See patches as attachments. Globally cosmetic changes.
Assumptions:
- $startdir should be used as $srcdir and $pkgdir parent, as it could
be useful, for example, to have $pkgdir in a
tmpfs
=> Removed any reference to "$startdir/pkg" or "$startdir/src"
=> Relative paths to switch between $srcdir and $pkgdir should be
avoided. E.g.:
cd $srcdir/A
patch [...] < ../../pkg/
is non-sense
- $pkgdir and $srcdir could contain namespaces, etc. and we shouldn't
try to guess about $IFS
=> "$srcdir/A" instead of $srcdir/A (use of "")
- Still, lightweight means smater
=> Don't use
"$_svntrunk" ${something}
instead of
$_svntrunk $something
- "folder" is prefered to "folder/" in our scripts, but we should not
suppose a makefile doesn't use something like
"${DESTDIR}usr/bin"
=> DESTDIR="$pkgdir/", "$pkgdir" otherwise
Have a nice day ;)
--
Geoffroy Carrier
http://gcarrier.koon.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: abs_new_protos.diff
Type: application/octet-stream
Size: 3490 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20080517/f8cb0bec/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pacman_new_proto.diff
Type: application/octet-stream
Size: 295 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20080517/f8cb0bec/attachment-0001.obj>
More information about the pacman-dev
mailing list