1 # Maintainer: Igor Borges <igorborges12@gmail.com>
5 pkgdesc="An extended version of pyaxel, a CLI based download accelerator in Python."
7 url="http://code.google.com/p/pyaxelws/"
9 install=pyaxelws.install
12 makedepends=('mercurial')
13 md5sums=('8217a72477ee6a89f85fda54345801cf')
17 hg clone "https://code.google.com/p/pyaxelws/" ${pkgname}
18 cd "${srcdir}/${pkgname}"
20 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' pyaxelws.py
24 cd "${srcdir}/${pkgname}"
25 mkdir -p "${pkgdir}/usr/"{share/${pkgname},bin}
26 install -Dm644 pyaxelws.py StateManager.py ThreadPool.py "${pkgdir}/usr/share/${pkgname}"
27 install -Dm755 ${srcdir}/daemon "${pkgdir}/etc/rc.d/${pkgname}"
28 ln -s "${pkgdir}/usr/share/${pkgname}/pyaxelws.py" "${pkgdir}/usr/bin/${pkgname}"