makepkg: generalize download_sources
commit1a04e2e11a012162b7b3b91e4c7a8c82dd113a94
authorAllan McRae <allan@archlinux.org>
Sun, 3 Jun 2012 12:57:35 +0000 (3 22:57 +1000)
committerAllan McRae <allan@archlinux.org>
Fri, 3 Aug 2012 14:16:38 +0000 (4 00:16 +1000)
treee6dfb36b160992bb44c60b7a00817a406687b307
parenta922d1805696b6614649a8d3588297d44f4e1192
makepkg: generalize download_sources

In order to treat all VCS sources as URLs, we need to be able to
deal with more protocols. Rewrite download_sources to use a case
statement so additional protocols are easily added.

Also fix the use of scp to not pass the protocol in the URL
(noticed by William J. Bowman <wjb@williamjbowman.com>)

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