makepkg: add function to return download protocol
commita922d1805696b6614649a8d3588297d44f4e1192
authorAllan McRae <allan@archlinux.org>
Sun, 3 Jun 2012 23:02:03 +0000 (4 09:02 +1000)
committerAllan McRae <allan@archlinux.org>
Fri, 3 Aug 2012 14:16:38 +0000 (4 00:16 +1000)
tree335da70258e4bdb8c1ff393bdf17c150d1b6f9b5
parente8064144072e03ea1690c5aa97e863f14096a771
makepkg: add function to return download protocol

Extract the download protocol from a source entry.  Returns "local"
for local source files.

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