makepkg: allow pkgname usage in split package functions
commiteb93955477c411eaf914c2f1650ce37d02d8b56e
authorAllan McRae <allan@archlinux.org>
Sat, 25 Dec 2010 03:14:55 +0000 (25 13:14 +1000)
committerDan McGee <dan@archlinux.org>
Thu, 30 Dec 2010 00:44:32 +0000 (29 18:44 -0600)
tree829cbb4ced81d7c35cf45549e790ca55445f9c7d
parenta7972625e3ef98348b8a0957217aa2991501a07b
makepkg: allow pkgname usage in split package functions

Currently, using $pkgname in a split package package_*() function
always returns the first value in the pkgname array rather than the
name of tha package being packaged.  Fix this so $pkgname gives the
expected value.

Fixes FS#22174

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/makepkg.sh.in