summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff90f99f95bf346154e68fc73812fba908b7da98 (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
30
31
32
33
34
35
36
37
38
# Maintainer: Max Ebert <Pesticide3902@proton.me>

_name=Moodle-DL
pkgname=moodle-dl
pkgver=2.3.13
pkgrel=1
pkgdesc='A Moodle downloader that downloads course content fast from Moodle (eg. lecture pdfs)'
arch=('any')
url='https://github.com/C0D3D3V/Moodle-DL'
license=('GPL3')
depends=('ffmpeg'
         'python>=3.7'
         'python-aiodns>=3.0.0'
         'python-aiofiles>=22.1.0'
         'python-aiohttp>=3.8.4'
         'python-certifi>=2020.4.5.2'
         'python-colorama>=0.4.6'
         'python-colorlog>=6.7.0'
         'python-html2text>=2020.1.16'
         'python-readchar>=4.0.3'
         'python-requests>=2.24.0'
         'python-sentry_sdk>=0.13.5'
         'python-xmpppy>=0.7.1'
         'yt-dlp>=2021.10.22')
makedepends=(python-build python-installer python-setuptools python-wheel)
source=("https://github.com/C0D3D3V/Moodle-DL/archive/$pkgver.tar.gz")
b2sums=('f7991d7583828ec313cc62214a300ec5d3df29101fb59d71b70b6105db47f0e308ad57fc6730e8e870f62123f7d023a6749eaafe074886bda9a0e5f75575a116')

build() {
    cd "${srcdir}/$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}