summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d604577e3c9626f620788d60104df8aa0b14aea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Filipe Nascimento <flipee at tuta dot io>

pkgname=aria2p
pkgver=0.7.1
pkgrel=2
pkgdesc="Command-line tool and library to interact with an aria2c daemon process with JSON-RPC"
arch=('any')
url="https://github.com/pawamoy/$pkgname"
license=('ISC')
depends=('python' 'python-loguru' 'python-requests'
         'python-setuptools' 'python-websocket-client')
optdepends=('aria2: aria2c daemon'
            'python-asciimatics: interactive interface support')
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
sha256sums=('248cd1e4e30537e475e9aa66bc4f7ba23bafdc973c34ad368a0860e035b4314a')

build() {
    cd "$srcdir/$pkgname-$pkgver"
    python setup.py build
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}