summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 009fbc24ba44dff489e073cf23e0971235f003e2 (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
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Aethar <elliott.ashby88@gmail.com>

pkgname=fastanime
pkgver=2.8.3
pkgrel=2
pkgdesc="FastAnime, anime site experience from the terminal."
arch=('x86_64')
url="https://github.com/Benex254/FastAnime"
license=('Unlicense')
makedepends=('python>=3.10' 'python-installer')
depends=('python'
         'python-click'
         'python-fastapi'
         'python-inquirerpy'
         'libtorrent'
         'python-plyer'
         'python-pytest'
         'python-requests'
         'python-rich'
         'python-thefuzz'
         'yt-dlp'
         'python-dbus')
optdepends=('mpv: video player'
            'webtorrent-cli: nyaa torrents'
            'ffmpeg: download hls streams' 
            'rofi: alternative ui'
            'fzf: alternative ui'
            'chafa: terminal image viewer'
            'icat: kitty terminal image viewer'
            'bash: preview script language'
            'ani-skip-git: skip anime openings'
            'ffmpegthumbnailer: local previews'
            'syncplay: watch with friends'
            'feh: image viewer (for manga mode)')
provides=('fastanime')
source=("${pkgname}-v${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")

build() {
    cd "${srcdir}" || exit
    cd "FastAnime-${pkgver}" || exit
    python -m build --wheel
}

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