blob: 256fa907549db905ff7368aae6c68d577f1d8f2e (
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
27
28
29
|
pkgname=nyaadownloader-git
_pkgname=${pkgname%-git}
pkgver=r62.268890d
pkgrel=1
pkgdesc="A tool to download multiple torrents or transfer magnets from Nyaa.si"
url="https://github.com/p0358/nyaadownloader"
depends=('python>=3.9' 'python-requests' 'python-nyaapy' 'libnotify' 'qt6-base' 'python-pyqt6')
makedepends=('python-setuptools')
provides=($_pkgname)
conflicts=($_pkgname)
license=('MIT')
arch=('any')
source=("$_pkgname::git+${url}.git")
sha256sums=(SKIP)
pkgver() {
cd "$_pkgname"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|