makepkg: Add fallback to package function
commit9c34dfd908480baed06bb2e618d8899fb8728dbd
authorAllan McRae <allan@archlinux.org>
Sun, 25 Oct 2009 04:33:47 +0000 (25 14:33 +1000)
committerDan McGee <dan@archlinux.org>
Mon, 16 Nov 2009 01:29:24 +0000 (15 19:29 -0600)
treee8b28d82b34abb5cd149e544b702586ed483f51b
parentc2999619d2af0c4fa3cbee13a4f12d95c6ab059e
makepkg: Add fallback to package function

makepkg looks for a package() function when building a single package
but package_$pkgname() style package functions when building a split
package.  This patch allows the use of a package_$pkgname() function
when building a single package for consistency.  This is achieved by
having makepkg consider a non-split package with a package_$pkgname()
function as a split package (creating just the one package).

Fixes FS#16622.

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