|
http://aur.archlinux.org/packages.php?do_Details&ID=12542
安装后,就可以 aria2c -s 12 http://url 等了
PKGBUILD
- # Contributor: nixzpkg <nixzpkg at yahoo dot com>
- pkgname=aria2-more-split
- pkgver=0.11.2
- pkgrel=2
- pkgdesc="aria2 is a download utility with resuming and segmented downloading.
- Supports HTTP/HTTPS/FTP/BitTorrent/Metalink."
- arch=(i686 x86_64)
- url="http://aria2.sourceforge.net/"
- license="gpl"
- depends=('gnutls' 'gcc' 'libxml2>=2.6.29')
- makedepends=('c-ares')
- conflicts=('aria2')
- provides=('aria2')
- source=(http://downloads.sourceforge.net/sourceforge/aria2/aria2-$pkgver.tar.bz2
- \
- patch-aria2.diff)
- md5sums=('4b58849f0bf7f2abab1675ce2e8958ec' \
- '3cc5d86217472244df4379f4c43fb51f')
- build() {
- cd $startdir/src/aria2-$pkgver
- patch -p1 -i $startdir/patch-aria2.diff || return 1
- ./configure --prefix=/usr
- make || return 1
- make DESTDIR=$startdir/pkg install
- }
复制代码
patch-aria2.diff
- --- a/src/main.cc-ori 2007-08-14 23:11:51.000000000 +0000
- +++ b/src/main.cc 2007-08-14 23:15:50.000000000 +0000
- @@ -134,7 +134,7 @@
- cout << _(" -D, --daemon Run as daemon.") << endl;
- #endif // HAVE_DAEMON
- cout << _(" -s, --split=N Download a file using N connections. N must be\n"
- - " between 1 and 5. This option affects all URLs.\n"
- + " between 1 and 100. This option affects all URLs.\n"
- " Thus, aria2 connects to each URL with\n"
- " N connections.\n"
- " Default: 1") << endl;
- --- a/src/OptionHandlerFactory.cc-ori 2007-08-14 23:17:46.000000000 +0000
- +++ b/src/OptionHandlerFactory.cc 2007-08-14 23:19:13.000000000 +0000
- @@ -77,7 +77,7 @@
- handlers.push_back(new DefaultOptionHandler(PREF_DIR));
- handlers.push_back(new DefaultOptionHandler(PREF_OUT));
- handlers.push_back(new LogOptionHandler(PREF_LOG));
- - handlers.push_back(new NumberOptionHandler(PREF_SPLIT, 1, 5));
- + handlers.push_back(new NumberOptionHandler(PREF_SPLIT, 1, 100));
- handlers.push_back(new NumberOptionHandler(PREF_TIMEOUT, 1, 600));
- handlers.push_back(new NumberOptionHandler(PREF_MAX_TRIES, 0));
- handlers.push_back(new BooleanOptionHandler(PREF_FTP_PASV));
- --- a/doc/aria2c.1-ori 2007-08-14 23:19:39.000000000 +0000
- +++ b/doc/aria2c.1 2007-08-14 23:20:17.000000000 +0000
- @@ -59,7 +59,7 @@
- must be between
- \fI1\fR
- and
- -\fI5\fR. This option affects all URLs. Thus, aria2 connects to each URL with
- +\fI100\fR. This option affects all URLs. Thus, aria2 connects to each URL with
- \fIN\fR
- connections. Default:
- \fI1\fR
复制代码 |
|